use debug to print debug info

This commit is contained in:
Qingping Hou
2012-04-19 00:16:49 +08:00
parent 35e4ceaf57
commit 3306346dba
14 changed files with 47 additions and 49 deletions

View File

@@ -6,7 +6,7 @@ InfoMessage = {
}
function InfoMessage:show(text,refresh_mode)
print("# InfoMessage ", text, refresh_mode)
debug("# InfoMessage ", text, refresh_mode)
local dialog = CenterContainer:new({
dimen = { w = G_width, h = G_height },
FrameContainer:new({
@@ -50,7 +50,6 @@ function showInfoMsgWithDelay(text, msec, refresh_mode)
ev = input.waitForEvent(msec*1000)
adjustKeyEvents(ev)
end)
print(is_not_timeout)
until not ok or ev.value == EVENT_VALUE_KEY_PRESS
Screen:restoreFromSavedBB()