]> git.earman.xyz Git - sensor-watch.git/commitdiff
voltage and temperature: clear sleep animation on activate
authorJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 03:36:20 +0000 (23:36 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 03:36:20 +0000 (23:36 -0400)
watch-faces/sensor/temperature_display_face.c
watch-faces/sensor/voltage_face.c

index c3dd82fcb9da7cf4d5f1cd04574b2744f9d8cc21..b33cbe816905dde2142fc8731c001d569a026d3e 100644 (file)
@@ -63,6 +63,7 @@ bool temperature_display_face_loop(movement_event_t event, void *context) {
                 movement_move_to_next_face();
                 return false;
             }
+            if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
             watch_display_text_with_fallback(WATCH_POSITION_TOP, "TEMP", "TE");
             // force a measurement to be taken immediately.
             date_time.unit.second = 0;
index 17ab5ea2fbf06a77648e2579e49cdffe0899306a..bb0461bd8a887543aae9dfbbc3014afc0c261c40 100644 (file)
@@ -50,6 +50,7 @@ bool voltage_face_loop(movement_event_t event, void *context) {
     watch_date_time_t date_time;
     switch (event.event_type) {
         case EVENT_ACTIVATE:
+            if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
             _voltage_face_update_display();
             break;
         case EVENT_TICK: