From 91e530d36cb33d0cfa439b49ad6a7d2631c634c5 Mon Sep 17 00:00:00 2001 From: Lucian Copeland Date: Fri, 2 Apr 2021 13:42:22 -0400 Subject: [PATCH] Resolve wake alarm crash --- ports/esp32s2/common-hal/alarm/pin/PinAlarm.c | 2 +- ports/stm/common-hal/alarm/__init__.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/esp32s2/common-hal/alarm/pin/PinAlarm.c b/ports/esp32s2/common-hal/alarm/pin/PinAlarm.c index a6bd0ed376..9ea9b9b998 100644 --- a/ports/esp32s2/common-hal/alarm/pin/PinAlarm.c +++ b/ports/esp32s2/common-hal/alarm/pin/PinAlarm.c @@ -152,7 +152,7 @@ static uint64_t high_alarms = 0; static uint64_t low_alarms = 0; static uint64_t pull_pins = 0; -void alarm_pin_pinalarm_reset_alarms(void) { +void alarm_pin_pinalarm_reset(void) { if (gpio_interrupt_handle != NULL) { esp_intr_free(gpio_interrupt_handle); gpio_interrupt_handle = NULL; diff --git a/ports/stm/common-hal/alarm/__init__.c b/ports/stm/common-hal/alarm/__init__.c index 9df19ed705..6b0d6f4681 100644 --- a/ports/stm/common-hal/alarm/__init__.c +++ b/ports/stm/common-hal/alarm/__init__.c @@ -161,5 +161,5 @@ void NORETURN common_hal_alarm_enter_deep_sleep(void) { } void common_hal_alarm_gc_collect(void) { - gc_collect_ptr(common_hal_alarm_get_wake_alarm()); + gc_collect_ptr(shared_alarm_get_wake_alarm()); }