set a valid date on boot

This commit is contained in:
joeycastillo 2024-10-05 07:34:11 -04:00
parent 8d2c6680e3
commit 925e98be2c

View File

@ -461,6 +461,8 @@ void app_init(void) {
if (date_time.reg == 0) {
// at first boot, set year to 2024
date_time.unit.year = 2024 - WATCH_RTC_REFERENCE_YEAR;
date_time.unit.month = 1;
date_time.unit.day = 1;
watch_rtc_set_date_time(date_time);
}