]> git.earman.xyz Git - sensor-watch.git/commitdiff
launcher: track can_sleep between runloop invocations
authorJoey Castillo <jose.castillo@gmail.com>
Mon, 4 Oct 2021 15:57:57 +0000 (11:57 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Mon, 4 Oct 2021 18:12:39 +0000 (14:12 -0400)
launcher/launcher.c

index 38a13b5ccc3ace0af8a502b6377871714f26db2f..d6883567b780eb84023bc6324ec73ec1d4e8d71b 100644 (file)
@@ -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;