From f6fad64eebe0b93b086c8bc0685fb049cef0e518 Mon Sep 17 00:00:00 2001 From: Alessandro Genova Date: Sun, 7 Dec 2025 21:09:39 -0500 Subject: [PATCH] don't force-reset the state of the RTC when rebooting --- watch-library/hardware/watch/rtc32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/watch-library/hardware/watch/rtc32.c b/watch-library/hardware/watch/rtc32.c index 934564bb..d4ac9b27 100644 --- a/watch-library/hardware/watch/rtc32.c +++ b/watch-library/hardware/watch/rtc32.c @@ -61,9 +61,7 @@ void rtc_init(void) { MCLK->APBAMASK.reg |= MCLK_APBAMASK_RTC; #endif - // if (rtc_is_enabled()) return; // don't reset the RTC if it's already set up. - // Reset everything, once things are stabilized we can think about preserving some state - CTRLREG.bit.ENABLE = 0; + if (rtc_is_enabled()) return; // don't reset the RTC if it's already set up. _rtc_sync(); CTRLREG.bit.SWRST = 1;