stm32/main: Call mp_deinit() at end of main.
This adds a call to mp_deinit() in the main function of the STM32 port. This enables the use of MICROPY_PORT_DEINIT_FUNC on that port, as well as cleaning up the GIL if threading is enabled.
This commit is contained in:
parent
a32a7421d6
commit
8182f34584
|
@ -662,6 +662,7 @@ soft_reset_exit:
|
|||
MICROPY_BOARD_END_SOFT_RESET(&state);
|
||||
|
||||
gc_sweep_all();
|
||||
mp_deinit();
|
||||
|
||||
goto soft_reset;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue