X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=mytest.py;h=88c035abecd0114d86bc1c66a3076dbe217c3484;hb=9f233a55dbc640a9dd8d1aa46c1291d28fdea3b4;hp=2dcd0d3317c5c3d7abd83361b090156e0c0fcda3;hpb=92362f1b73f1e61ad0cb1c581b318b360e0bb6fe;p=vuplus_dvbapp diff --git a/mytest.py b/mytest.py index 2dcd0d3..88c035a 100644 --- a/mytest.py +++ b/mytest.py @@ -1,7 +1,9 @@ +import eConsoleImpl import eBaseImpl import enigma enigma.eTimer = eBaseImpl.eTimer enigma.eSocketNotifier = eBaseImpl.eSocketNotifier +enigma.eConsoleAppContainer = eConsoleImpl.eConsoleAppContainer from Tools.Profile import profile, profile_final @@ -59,7 +61,7 @@ try: from twisted.internet import reactor def runReactor(): - reactor.run() + reactor.run(installSignalHandlers=False) except ImportError: print "twisted not available" def runReactor(): @@ -478,16 +480,13 @@ def runScreenTest(): if x != -1 ] wakeupList.sort() - if len(wakeupList) and getFPWakeuptime(): # getFPWakeuptime returns 1 when the sanity check in Navigation.py was okay.. + if len(wakeupList): startTime = wakeupList.pop(0) if (startTime - nowTime) < 330: # no time to switch box back on wptime = nowTime + 30 # so switch back on in 30 seconds else: wptime = startTime - 300 setFPWakeuptime(wptime) - else: - print "buggy atmel firmware detected... dont set a wakeup time!" - setFPWakeuptime(0) profile("stopService") session.nav.stopService() profile("nav shutdown")