Resolve wake alarm crash
This commit is contained in:
parent
4f52554eb3
commit
91e530d36c
@ -152,7 +152,7 @@ static uint64_t high_alarms = 0;
|
|||||||
static uint64_t low_alarms = 0;
|
static uint64_t low_alarms = 0;
|
||||||
static uint64_t pull_pins = 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) {
|
if (gpio_interrupt_handle != NULL) {
|
||||||
esp_intr_free(gpio_interrupt_handle);
|
esp_intr_free(gpio_interrupt_handle);
|
||||||
gpio_interrupt_handle = NULL;
|
gpio_interrupt_handle = NULL;
|
||||||
|
@ -161,5 +161,5 @@ void NORETURN common_hal_alarm_enter_deep_sleep(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_alarm_gc_collect(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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user