Resolve wake alarm crash

This commit is contained in:
Lucian Copeland 2021-04-02 13:42:22 -04:00
parent 4f52554eb3
commit 91e530d36c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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());
}