From aaa646aa56c0e49013019b0072c4877c49bd5a1c Mon Sep 17 00:00:00 2001 From: Paulo Matias Date: Sat, 10 Aug 2013 11:16:02 -0300 Subject: [PATCH] Only assign DEBUG to a no-op function if Dbg.is_on==false --- reader.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reader.lua b/reader.lua index 596b3ba02..a21cd7c0d 100755 --- a/reader.lua +++ b/reader.lua @@ -217,8 +217,6 @@ function showusage() return end -DEBUG = function() end - local argidx = 1 while argidx <= #ARGV do local arg = ARGV[argidx] @@ -250,6 +248,10 @@ while argidx <= #ARGV do end end +if not Dbg.is_on then + DEBUG = function() end +end + if Device:hasNoKeyboard() then -- remove menu item shortcut for K4 Menu.is_enable_shortcut = false