prev_wakeup_time: initialise using strict integers only or gsod will happen.
authorErik Slagter <erik@openpli.org>
Tue, 24 Nov 2015 18:40:00 +0000 (19:40 +0100)
committerErik Slagter <erik@openpli.org>
Tue, 24 Nov 2015 18:40:00 +0000 (19:40 +0100)
This fixes http://forums.openpli.org/topic/39519-lost-webif-after-reboot-vu-duo2/#entry515601

mytest.py

index 5098cf7..d709850 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -504,7 +504,7 @@ def runScreenTest():
                        setRTCtime(nowTime)
                print "set wakeup time to", strftime("%Y/%m/%d %H:%M", localtime(wptime))
                setFPWakeuptime(wptime)
-               config.misc.prev_wakeup_time.value = startTime[0]
+               config.misc.prev_wakeup_time.value = int(startTime[0])
                config.misc.prev_wakeup_time_type.value = startTime[1]
                config.misc.prev_wakeup_time_type.save()
        else: