diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-04-02 10:12:26 -0400 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-04-02 10:12:26 -0400 |
commit | dd3e6c5fc37fe2dd42808797400406867e204d7d (patch) | |
tree | 9bc9b6ad902b3b46f4cfd43efa27550553d8cf56 /movement/watch_faces | |
parent | 51e357d8224e3d740f4ab9ed6d6fc0de4fdb9d4c (diff) | |
download | Sensor-Watch-dd3e6c5fc37fe2dd42808797400406867e204d7d.tar.gz Sensor-Watch-dd3e6c5fc37fe2dd42808797400406867e204d7d.tar.bz2 Sensor-Watch-dd3e6c5fc37fe2dd42808797400406867e204d7d.zip |
time set: fix PM not appearing at noon in 12h mode
Diffstat (limited to 'movement/watch_faces')
-rw-r--r-- | movement/watch_faces/settings/set_time_face.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c index f0e7dc6c..af5421f1 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(); |