summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-04 11:57:57 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-04 14:12:39 -0400
commit74e866250920cb35b4575e0cdad47f63d4ae871d (patch)
treef8c7ef3f52526a4d1bcf85b68d343b9fbf3ae6c9
parent0b60edb2659dfacf729a29f7aea7dab2bfa22160 (diff)
downloadSensor-Watch-74e866250920cb35b4575e0cdad47f63d4ae871d.tar.gz
Sensor-Watch-74e866250920cb35b4575e0cdad47f63d4ae871d.tar.bz2
Sensor-Watch-74e866250920cb35b4575e0cdad47f63d4ae871d.zip
launcher: track can_sleep between runloop invocations
-rw-r--r--launcher/launcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/launcher.c b/launcher/launcher.c
index 38a13b5c..d6883567 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;