Files
ZephCore/zephcore
liquidraver 2630ce9096 joystick UI: pause periodic timers on display-off, reset lock on wake
UIScreen gains onDisplayOff()/onDisplayOn() hooks. JoystickUITask tracks
display state and dispatches them on transition — at top of loop()
(catches display.c's auto-off, which fires behind our back) and right
after _display.turnOn() in the wake path (immediate resume).

Override in SnakeScreen and GPSSettingsScreen: stop their periodic
k_timers while the screen is off, restart on wake. Game state and
GPS-fix state are preserved across sleep. Snake doesn't crash into a
wall five seconds after the screen sleeps anymore.

Other screen timers (Countdown alarm, Contacts/Admin response timeout,
the global lock timer) intentionally keep running — their job is to
fire while the user is idle.

Also: wake-from-off now reschedules the lock timer if not already
locked, so a keypress near the end of the lock window gives you a
fresh LOCK_AFTER_MS instead of being immediately re-locked.
2026-05-21 13:18:49 +02:00
..
2026-05-20 20:40:58 +01:00
2026-02-22 13:09:18 +01:00
2026-05-14 22:24:48 +02:00
2026-05-20 22:53:02 +02:00
2026-03-19 10:44:33 +01:00
2026-05-20 22:53:02 +02:00
2026-05-20 22:53:02 +02:00
2026-02-20 12:43:13 +01:00
2026-02-22 13:09:18 +01:00