diff --git a/src/rp2_common/pico_cyw43_arch/cyw43_arch_freertos.c b/src/rp2_common/pico_cyw43_arch/cyw43_arch_freertos.c index 2bfb39e..01d9baa 100644 --- a/src/rp2_common/pico_cyw43_arch/cyw43_arch_freertos.c +++ b/src/rp2_common/pico_cyw43_arch/cyw43_arch_freertos.c @@ -168,6 +168,7 @@ void cyw43_arch_deinit(void) { } gpio_set_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, false); gpio_remove_raw_irq_handler(IO_IRQ_BANK0, gpio_irq_handler); + cyw43_deinit(&cyw43_state); } void cyw43_post_poll_hook(void) { diff --git a/src/rp2_common/pico_cyw43_arch/cyw43_arch_threadsafe_background.c b/src/rp2_common/pico_cyw43_arch/cyw43_arch_threadsafe_background.c index a3dde74..79ccfd7 100644 --- a/src/rp2_common/pico_cyw43_arch/cyw43_arch_threadsafe_background.c +++ b/src/rp2_common/pico_cyw43_arch/cyw43_arch_threadsafe_background.c @@ -211,6 +211,7 @@ void cyw43_arch_deinit(void) { gpio_set_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, false); gpio_remove_raw_irq_handler(IO_IRQ_BANK0, gpio_irq_handler); low_prio_irq_deinit(); + cyw43_deinit(&cyw43_state); } void cyw43_post_poll_hook(void) {