From 27edc50be1326934a0a352fa0474e8715ed83f98 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sun, 8 Aug 2021 15:01:44 -0400 Subject: fix renaming of _watch_rtc_is_enabled --- watch-library/main.c | 2 +- watch-library/watch/watch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'watch-library') diff --git a/watch-library/main.c b/watch-library/main.c index dd0822ad..51cae449 100755 --- a/watch-library/main.c +++ b/watch-library/main.c @@ -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(); diff --git a/watch-library/watch/watch.c b/watch-library/watch/watch.c index 0450c360..4c891d65 100644 --- a/watch-library/watch/watch.c +++ b/watch-library/watch/watch.c @@ -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; } -- cgit v1.2.3