From: Joey Castillo Date: Mon, 4 Oct 2021 15:57:57 +0000 (-0400) Subject: launcher: track can_sleep between runloop invocations X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=74e866250920cb35b4575e0cdad47f63d4ae871d;p=sensor-watch.git launcher: track can_sleep between runloop invocations --- diff --git a/launcher/launcher.c b/launcher/launcher.c index 38a13b5..d688356 100644 --- a/launcher/launcher.c +++ b/launcher/launcher.c @@ -145,7 +145,7 @@ bool app_loop() { app_setup(); } - bool can_sleep = true; + static bool can_sleep = true; if (event.bit.event_type) { event.bit.subsecond = launcher_state.subsecond;