]> git.earman.xyz Git - sensor-watch.git/commitdiff
disable screensaver interrupt on wake
authorJoey Castillo <jose.castillo@gmail.com>
Mon, 4 Oct 2021 03:39:52 +0000 (23:39 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Mon, 4 Oct 2021 03:39:52 +0000 (23:39 -0400)
launcher/launcher.c

index 0f8f7ead259a09d5f97940cf5c6250e346e1c38b..120e045b761a707cb72f9d18e6db4d88ba6613da 100644 (file)
@@ -61,6 +61,7 @@ void app_wake_from_deep_sleep() {
 void app_setup() {
     if (launcher_state.screensaver_ticks != -1) {
         watch_disable_extwake_interrupt(BTN_ALARM);
+        watch_rtc_disable_alarm_callback();
 
         watch_enable_external_interrupts();
         watch_register_interrupt_callback(BTN_MODE, cb_mode_btn_interrupt, INTERRUPT_TRIGGER_BOTH);