]> git.earman.xyz Git - sensor-watch.git/commitdiff
immediately process events when coming out of deep sleep
authorAlessandro Genova <ales.genova@gmail.com>
Sat, 13 Sep 2025 01:26:02 +0000 (21:26 -0400)
committerAlessandro Genova <ales.genova@gmail.com>
Sat, 3 Jan 2026 01:07:56 +0000 (20:07 -0500)
movement.c

index 1c9db617deccad2cf7c90156f56c68da5c8110c3..14944bea8efe6fdc4769c7373f94f9e2fadb8f6e 100644 (file)
@@ -1277,6 +1277,10 @@ bool app_loop(void) {
             // back to sleep (unless the user interacts with it in the meantime)
             _pending_sequence = NULL;
         }
+
+        // don't let the watch sleep when exiting deep sleep mode,
+        // so that app_loop will run again and process the events that may have fired.
+        can_sleep = false;
     }
 #endif