refactor movement's 24h mode to a function call
This commit is contained in:
@@ -73,7 +73,7 @@ static void _alarm_face_draw(movement_settings_t *settings, alarm_state_t *state
|
||||
}
|
||||
//handle am/pm for hour display
|
||||
uint8_t h = state->alarm[state->alarm_idx].hour;
|
||||
if (!settings->bit.clock_mode_24h) {
|
||||
if (!movement_clock_mode_24h()) {
|
||||
if (h >= 12) {
|
||||
watch_set_indicator(WATCH_INDICATOR_PM);
|
||||
h %= 12;
|
||||
|
||||
Reference in New Issue
Block a user