From: EGS Date: Wed, 31 Jul 2024 17:12:04 +0000 (+0100) Subject: Allow setting July 31st as today's date X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=278520bfaf85ce803d9ac6ad2a980556f04e037f;p=sensor-watch.git Allow setting July 31st as today's date To allow a valid date to be set the `set_time_face` cycles through the valid days for a given month. July was incorrectly encoded as having 30 days (it has 31!) --- diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c index 84a4d18..a8c88e4 100644 --- a/movement/watch_faces/settings/set_time_face.c +++ b/movement/watch_faces/settings/set_time_face.c @@ -33,7 +33,7 @@ static bool _quick_ticks_running; static void _handle_alarm_button(movement_settings_t *settings, watch_date_time date_time, uint8_t current_page) { // handles short or long pressing of the alarm button - const uint8_t days_in_month[12] = {31, 28, 31, 30, 31, 30, 30, 31, 30, 31, 30, 31}; + const uint8_t days_in_month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; switch (current_page) { case 0: // hour