Replace busy-wait with time-based sleep in sweden.c

This commit is contained in:
Chris
2026-02-08 14:52:19 +01:00
parent e2cf01bb4a
commit b245dc5f00
5 changed files with 20 additions and 2 deletions

View File

@@ -1729,6 +1729,10 @@ void wm_init(void) {
force_redraw = true;
}
uint32_t wm_get_ticks(void) {
return timer_ticks;
}
// Called by timer interrupt ~60Hz
void wm_timer_tick(void) {
timer_ticks++;