summaryrefslogtreecommitdiffstats
path: root/watch-library/main.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-25 14:52:40 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-25 14:52:40 -0400
commit22c072ac3f4fb450315b204dc4a6f2644c8665a7 (patch)
tree340cedd1875e873448449a868bf9c937cece881f /watch-library/main.c
parent24e160611e12df8d31edc02af21ce07ad0929e1b (diff)
parentbadb4ba9090c6228738a555b82c988aafbe72fec (diff)
downloadSensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.tar.gz
Sensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.tar.bz2
Sensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.zip
Merge branch 'main' into more-asf-files
Diffstat (limited to 'watch-library/main.c')
-rwxr-xr-xwatch-library/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/watch-library/main.c b/watch-library/main.c
index db602a34..1fe751ef 100755
--- a/watch-library/main.c
+++ b/watch-library/main.c
@@ -57,7 +57,7 @@ int main(void) {
// Ideally we should check if the TAMPER or CMP0 (alarm) flags are set.
if (_watch_rtc_is_enabled()) {
// User code. Give the application a chance to restore state from backup registers.
- app_wake_from_deep_sleep();
+ app_wake_from_backup();
// disable the tamper interrupt and clear the tamper bit
hri_rtcmode0_clear_INTEN_TAMPER_bit(RTC);
@@ -75,9 +75,9 @@ int main(void) {
bool can_sleep = app_loop();
if (can_sleep && !usb_enabled) {
- app_prepare_for_sleep();
+ app_prepare_for_standby();
sleep(4);
- app_wake_from_sleep();
+ app_wake_from_standby();
}
}