From 278520bfaf85ce803d9ac6ad2a980556f04e037f Mon Sep 17 00:00:00 2001 From: EGS Date: Wed, 31 Jul 2024 18:12:04 +0100 Subject: [PATCH] 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!) --- movement/watch_faces/settings/set_time_face.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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