mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1767 from openmv/winc_sweep
ports/stm32: Call GC sweep first before deinitializing SPI.
This commit is contained in:
commit
97921e61a9
@ -645,7 +645,6 @@ soft_reset:
|
||||
#endif
|
||||
timer_deinit();
|
||||
i2c_deinit_all();
|
||||
spi_deinit_all();
|
||||
uart_deinit_all();
|
||||
#if MICROPY_HW_ENABLE_CAN
|
||||
can_deinit_all();
|
||||
@ -658,7 +657,12 @@ soft_reset:
|
||||
#endif
|
||||
imlib_deinit_all();
|
||||
|
||||
// Call GC sweep first, before deinitializing the SPI peripheral.
|
||||
// For the WINC1500, we still need the SPI active to close sockets
|
||||
// when their finalizers are called by GC.
|
||||
gc_sweep_all();
|
||||
spi_deinit_all();
|
||||
|
||||
mp_deinit();
|
||||
|
||||
first_soft_reset = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user