]> git.earman.xyz Git - sensor-watch.git/commitdiff
default year to 2023
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 27 Aug 2023 21:53:02 +0000 (17:53 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 27 Aug 2023 21:53:02 +0000 (17:53 -0400)
watch-library/hardware/main.c

index d1eee16877f6d70d4bff9e1cc18f112b2b841097..325610f6ead20bc919863429c448407de9ff8f4b 100755 (executable)
@@ -66,10 +66,10 @@ int main(void) {
     // Watch library code. Set initial parameters for the device and enable the RTC.
     _watch_init();
 
-    // if date/time register is 0 (power on reset state), default year to 2022.
+    // if date/time register is 0 (power on reset state), default year to 2023.
     watch_date_time date_time = watch_rtc_get_date_time();
     if (date_time.reg == 0) {
-        date_time.unit.year = 2;
+        date_time.unit.year = 3;
         watch_rtc_set_date_time(date_time);
     }