]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix renaming of _watch_rtc_is_enabled
authorJoey Castillo <jose.castillo@gmail.com>
Sun, 8 Aug 2021 19:01:44 +0000 (15:01 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Sun, 8 Aug 2021 19:02:04 +0000 (15:02 -0400)
watch-library/main.c
watch-library/watch/watch.c

index dd0822ad9e5438d01deaaa56a779e26635991d1d..51cae449e3c1839b46133031790e0476e8cb8030 100755 (executable)
@@ -90,7 +90,7 @@ int main(void) {
 
     // If the RTC is already enabled, we're either waking from BACKUP mode or a reset.
     // Ideally we should check if the TAMPER or CMP0 (alarm) flags are set.
-    if (watch_rtc_is_enabled()) {
+    if (_watch_rtc_is_enabled()) {
         // User code. Give the application a chance to restore state from backup registers.
         app_wake_from_deep_sleep();
 
index 0450c36019702d24ca31e8764496b7110b5ae5ef..4c891d65470f9cea0dfe5a99db06a609831791c5 100644 (file)
@@ -297,7 +297,7 @@ void watch_set_led_off() {
 //////////////////////////////////////////////////////////////////////////////////////////
 // Real-time Clock
 
-bool watch_rtc_is_enabled() {
+bool _watch_rtc_is_enabled() {
     return RTC->MODE0.CTRLA.bit.ENABLE;
 }