X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/92362f1b73f1e61ad0cb1c581b318b360e0bb6fe..134bb4191d6681051ca92a8d345be6865d30a5a3:/mytest.py diff --git a/mytest.py b/mytest.py index 2dcd0d33..88c035ab 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")