]> git.earman.xyz Git - sensor-watch.git/commitdiff
Clear low energy animation when waking up
authorLorenzo Prosseda <lerokamut@gmail.com>
Fri, 1 Aug 2025 16:44:03 +0000 (18:44 +0200)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 3 Aug 2025 17:21:17 +0000 (13:21 -0400)
watch-faces/clock/ke_decimal_time_face.c

index 83cd7137994c80755898ede46d3fc4eefd379e0b..a693aa5a85ff0928a1be77ec6a1568a62e379d55 100644 (file)
@@ -69,6 +69,10 @@ void ke_decimal_time_face_setup(uint8_t watch_face_index, void ** context_ptr) {
 void ke_decimal_time_face_activate(void *context) {
     ke_decimal_time_state_t *state = (ke_decimal_time_state_t *)context;
 
+    if (watch_sleep_animation_is_running()) {
+        watch_stop_sleep_animation();
+    }
+
     // force re-display of date and time in EVENT_ACTIVATE
     state->previous_day = 0xFF;
     state->previous_time = 0xFFFFFFFF;