diff --git a/movement/watch_faces/clock/clock_face.c b/movement/watch_faces/clock/clock_face.c index 21d790f..d517897 100644 --- a/movement/watch_faces/clock/clock_face.c +++ b/movement/watch_faces/clock/clock_face.c @@ -60,6 +60,10 @@ static bool clock_is_in_24h_mode(movement_settings_t *settings) { #endif } +static bool clock_should_set_leading_zero(movement_settings_t *settings) { + return clock_is_in_24h_mode(settings) && settings->bit.clock_24h_leading_zero; +} + static void clock_indicate(WatchIndicatorSegment indicator, bool on) { if (on) { watch_set_indicator(indicator); @@ -180,7 +184,7 @@ static void clock_display_clock(movement_settings_t *settings, clock_state_t *cl clock_indicate_pm(settings, current); current = clock_24h_to_12h(current); } - clock_display_all(current, settings->bit.clock_24h_leading_zero); + clock_display_all(current, clock_should_set_leading_zero(settings)); } }