]> git.earman.xyz Git - sensor-watch.git/commitdiff
activity log: snap back to today on timeout
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 18 May 2025 16:07:35 +0000 (12:07 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 18 May 2025 17:29:45 +0000 (13:29 -0400)
watch-faces/sensor/activity_logging_face.c

index 3de3b51276686b48214076d4674bb3a9630767ac..d73f3e4626cb5149c3a0f4ef866a32fbc2ca0b3b 100644 (file)
@@ -114,6 +114,11 @@ bool activity_logging_face_loop(movement_event_t event, void *context) {
             // update the display as usual
             _activity_logging_face_update_display(state);
             break;
+        case EVENT_TIMEOUT:
+            // snap back to today on timeout
+            state->display_index = 0;
+            _activity_logging_face_update_display(state);
+            break;
         default:
             movement_default_loop_handler(event);
             break;