Files
ZephCore/zephcore/helpers
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-05-20 20:40:58 +01:00
2026-05-20 20:40:58 +01:00
2026-02-26 15:40:51 +01:00
2026-02-26 15:40:51 +01:00
2026-04-28 14:43:12 +02:00
2026-04-28 13:49:08 +02:00
2026-03-28 20:53:59 +01:00
2026-05-20 20:40:58 +01:00
2026-03-09 13:45:22 +01:00
2026-03-23 08:56:21 +01:00
2026-03-24 20:36:36 +01:00