From: Stefan Pluecken Date: Mon, 27 Feb 2006 20:44:27 +0000 (+0000) Subject: fix instant repowering X-Git-Tag: 2.6.0~3965 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/fdac98ca30eff200afaa92b7cd0464186fa8db88 fix instant repowering --- diff --git a/mytest.py b/mytest.py index 329bba26..70c45a01 100644 --- a/mytest.py +++ b/mytest.py @@ -306,7 +306,7 @@ def runScreenTest(): from time import time nextRecordingTime = session.nav.RecordTimer.getNextRecordingTime() if nextRecordingTime != -1: - if (nextRecordingTime < 330): # no time to switch box back on + if (nextRecordingTime - time() < 330): # no time to switch box back on setFPWakeuptime(time() + 30) # so switch back on in 30 seconds else: setFPWakeuptime(nextRecordingTime - (300))