From 38a2dff23491c4b22a8e55ffd6d096a198857c9f Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Wed, 20 Oct 2021 13:45:22 -0400 Subject: more accurate names for deep sleep and shallow sleep modes --- watch-library/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'watch-library/main.c') 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(); } } -- cgit v1.2.3