time set: fix PM not appearing at noon in 12h mode
This commit is contained in:
parent
51e357d822
commit
dd3e6c5fc3
@ -102,8 +102,8 @@ bool set_time_face_loop(movement_event_t event, movement_settings_t *settings, v
|
||||
sprintf(buf, "%s %2d%02d%02d", set_time_face_titles[current_page], date_time.unit.hour, date_time.unit.minute, date_time.unit.second);
|
||||
} else {
|
||||
sprintf(buf, "%s %2d%02d%02d", set_time_face_titles[current_page], (date_time.unit.hour % 12) ? (date_time.unit.hour % 12) : 12, date_time.unit.minute, date_time.unit.second);
|
||||
if (date_time.unit.hour > 12) watch_set_indicator(WATCH_INDICATOR_PM);
|
||||
else watch_clear_indicator(WATCH_INDICATOR_PM);
|
||||
if (date_time.unit.hour < 12) watch_clear_indicator(WATCH_INDICATOR_PM);
|
||||
else watch_set_indicator(WATCH_INDICATOR_PM);
|
||||
}
|
||||
} else if (current_page < 6) {
|
||||
watch_clear_colon();
|
||||
|
Loading…
x
Reference in New Issue
Block a user