From 540222e949332e10e8f99b84d8e264fee0dd7bfb Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Tue, 20 May 2025 23:36:20 -0400 Subject: [PATCH] voltage and temperature: clear sleep animation on activate --- watch-faces/sensor/temperature_display_face.c | 1 + watch-faces/sensor/voltage_face.c | 1 + 2 files changed, 2 insertions(+) diff --git a/watch-faces/sensor/temperature_display_face.c b/watch-faces/sensor/temperature_display_face.c index c3dd82fc..b33cbe81 100644 --- a/watch-faces/sensor/temperature_display_face.c +++ b/watch-faces/sensor/temperature_display_face.c @@ -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; diff --git a/watch-faces/sensor/voltage_face.c b/watch-faces/sensor/voltage_face.c index 17ab5ea2..bb0461bd 100644 --- a/watch-faces/sensor/voltage_face.c +++ b/watch-faces/sensor/voltage_face.c @@ -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: