File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,15 @@ def power_countdown_callback(tmr):
57
57
if requestedStandbyTime > 0 :
58
58
if enableBpp :
59
59
print ("[PM] BPP for " + str (round (timeUntilNextTick / 60 ))+ " minutes." )
60
- appglue .start_bpp (round (requestedStandbyTime / 60 )) #BPP needs time in minutes
60
+ #appglue.start_bpp(round(requestedStandbyTime/60)) #BPP needs time in minutes
61
+ deepsleep .start_sleeping (requestedStandbyTime * 1000 )
61
62
else :
62
63
print ("[PM] Sleep for " + str (round ())+ " seconds." )
63
- deepsleep .start_sleeping (requestedStandbyTime * 1000 )
64
+ deepsleep .start_sleeping (requestedStandbyTime * 1000 ) #Sleep needs time in milliseconds
64
65
else :
65
66
print ("[PM] BPP forever." )
66
- appglue .start_bpp (- 1 )
67
+ #appglue.start_bpp(-1)
68
+ deepsleep .start_sleeping ()
67
69
68
70
# Graphics
69
71
@@ -298,7 +300,8 @@ def splash_input_init():
298
300
badge .nvs_set_u8 ('badge' , 'setup.state' , 3 )
299
301
otaAvailable = splash_ota_check ()
300
302
else : # Normal boot
301
- print ("[SPLASH] Normal boot..." )
303
+ print ("[SPLASH] Normal boot... " )
304
+ print ("RESET CAUSE: " + str (machine .reset_cause ()))
302
305
if (machine .reset_cause () != machine .DEEPSLEEP_RESET ):
303
306
print ("... from reset: checking for ota update" )
304
307
otaAvailable = splash_ota_check ()
You can’t perform that action at this time.
0 commit comments