mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
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!)
This commit is contained in:
parent
42c14c2e5b
commit
278520bfaf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue