summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2023-08-27 17:53:02 -0400
committerjoeycastillo <joeycastillo@utexas.edu>2023-08-27 17:53:02 -0400
commite4ad0e5567782015dbccdbc15ab26b67da3ef56e (patch)
tree1917de10ca167eace0c04632dad78aa0fd1908e6
parent1cb5d00aafefb31603d74e294bfe75ae641ce58a (diff)
downloadSensor-Watch-e4ad0e5567782015dbccdbc15ab26b67da3ef56e.tar.gz
Sensor-Watch-e4ad0e5567782015dbccdbc15ab26b67da3ef56e.tar.bz2
Sensor-Watch-e4ad0e5567782015dbccdbc15ab26b67da3ef56e.zip
default year to 2023
-rwxr-xr-xwatch-library/hardware/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/hardware/main.c b/watch-library/hardware/main.c
index d1eee168..325610f6 100755
--- a/watch-library/hardware/main.c
+++ b/watch-library/hardware/main.c
@@ -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);
}