]> git.earman.xyz Git - sensor-watch.git/commitdiff
time set: fix PM not appearing at noon in 12h mode
authorJoey Castillo <joeycastillo@utexas.edu>
Sat, 2 Apr 2022 14:12:26 +0000 (10:12 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sat, 2 Apr 2022 14:12:26 +0000 (10:12 -0400)
movement/watch_faces/settings/set_time_face.c

index f0e7dc6ca94fddb87a0e2a942e362bf7fed063c6..af5421f151aa91d52a16b785b3cd8545d7acd8e8 100644 (file)
@@ -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();