diff options
author | Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com> | 2024-02-25 13:31:28 -0300 |
---|---|---|
committer | Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com> | 2024-02-25 15:24:14 -0300 |
commit | 830200f9c3e7635cf88d42f42f1f0f6e4b0c99a6 (patch) | |
tree | 95088426ef53e58a5f45463e0f37ba6cd6cb4552 | |
parent | bf4d7a3f2bee213e4ef07b27e10436e6402efd3a (diff) | |
download | Sensor-Watch-830200f9c3e7635cf88d42f42f1f0f6e4b0c99a6.tar.gz Sensor-Watch-830200f9c3e7635cf88d42f42f1f0f6e4b0c99a6.tar.bz2 Sensor-Watch-830200f9c3e7635cf88d42f42f1f0f6e4b0c99a6.zip |
faces/clock: reorder periodic battery check
Check the battery after the time has been updated.
Place all the indication code next to each other.
-rw-r--r-- | movement/watch_faces/clock/clock_face.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/movement/watch_faces/clock/clock_face.c b/movement/watch_faces/clock/clock_face.c index 36f21ff9..4fe02376 100644 --- a/movement/watch_faces/clock/clock_face.c +++ b/movement/watch_faces/clock/clock_face.c @@ -218,9 +218,6 @@ bool clock_face_loop(movement_event_t event, movement_settings_t *settings, void previous.reg = state->previous_date_time; state->previous_date_time = current.reg; - clock_check_battery_periodically(state, date_time); - clock_indicate_low_available_power(state); - if (!clock_display_some(current, previous)) { if (!settings->bit.clock_mode_24h) { // if we are in 12 hour mode, do some cleanup. @@ -230,8 +227,10 @@ bool clock_face_loop(movement_event_t event, movement_settings_t *settings, void clock_display_all(current); } + clock_check_battery_periodically(state, current); clock_indicate_alarm(settings); + clock_indicate_low_available_power(state); break; case EVENT_ALARM_LONG_PRESS: |