From: Joey Castillo Date: Sat, 2 Apr 2022 14:12:26 +0000 (-0400) Subject: time set: fix PM not appearing at noon in 12h mode X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=dd3e6c5fc37fe2dd42808797400406867e204d7d;p=sensor-watch.git time set: fix PM not appearing at noon in 12h mode --- diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c index f0e7dc6..af5421f 100644 --- a/movement/watch_faces/settings/set_time_face.c +++ b/movement/watch_faces/settings/set_time_face.c @@ -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();