File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ def badge_sleep_forever():
312
312
def splashTimer_callback (tmr ):
313
313
global loopCnt
314
314
global timer_loop_amount
315
+ #print("[TIMER] "+str(loopCnt))
315
316
if loopCnt < 1 :
316
317
loopCnt = timer_loop_amount
317
318
cstate = badge .battery_charge_status ()
@@ -475,6 +476,8 @@ def load_settings():
475
476
splash_timer_interval = badge .nvs_get_u16 ('splash' , 'timer.interval' , 200 )
476
477
global timer_loop_amount
477
478
timer_loop_amount = badge .nvs_get_u8 ('splash' , 'timer.amount' , 25 )
479
+ global loopCnt
480
+ loopCnt = timer_loop_amount
478
481
479
482
# MAIN
480
483
def splash_main ():
@@ -508,7 +511,7 @@ def splash_main():
508
511
# GLOBALS (With defaults that will probably never be used)
509
512
splashTimer = machine .Timer (0 )
510
513
services = []
511
- timer_loop_amount = 10
514
+ timer_loop_amount = 9999
512
515
loopCnt = timer_loop_amount
513
516
header_fg = ugfx .BLACK
514
517
header_bg = ugfx .WHITE
You can’t perform that action at this time.
0 commit comments