ports/stm32: Disable lwip dispatch first before deinit.

This commit is contained in:
iabdalkader 2022-07-10 18:57:06 +02:00
parent ed5d16fd29
commit 2f34ee486b

View File

@ -633,13 +633,15 @@ soft_reset:
// Disable all other IRQs except Systick
irq_set_base_priority(IRQ_PRI_SYSTICK+1);
#if MICROPY_PY_BLUETOOTH
mp_bluetooth_deinit();
#endif
#if MICROPY_PY_LWIP
systick_disable_dispatch(SYSTICK_DISPATCH_LWIP);
#endif
#if MICROPY_PY_BLUETOOTH
mp_bluetooth_deinit();
#endif
#if MICROPY_PY_NETWORK
mod_network_deinit();
#endif
timer_deinit();
i2c_deinit_all();
spi_deinit_all();