mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
support years through 2080
This commit is contained in:
parent
e4ad0e5567
commit
7fd51caa25
|
@ -46,8 +46,7 @@ static void _handle_alarm_button(movement_settings_t *settings, watch_date_time
|
|||
date_time.unit.second = 0;
|
||||
break;
|
||||
case 3: // year
|
||||
// only allow 2021-2030. fix this sometime next decade
|
||||
date_time.unit.year = ((date_time.unit.year % 10) + 1);
|
||||
date_time.unit.year = ((date_time.unit.year % 60) + 1);
|
||||
break;
|
||||
case 4: // month
|
||||
date_time.unit.month = (date_time.unit.month % 12) + 1;
|
||||
|
|
Loading…
Reference in a new issue