X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/be296b411e8fc29f652799bf752d80db374d6672..b345751c11a3556e4f38e426e15b0f75de63a68e:/mytest.py 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))