mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Call gc_sweep_all on soft-reset.
* Make sure to collect open lwip sockets otherwise it runs out of memory. * This should be okay to add in general but will only enable for LWIP for now.
This commit is contained in:
parent
1cf5191c9c
commit
107bbed9f1
@ -745,6 +745,9 @@ soft_reset:
|
|||||||
#ifdef IMLIB_ENABLE_DMA2D
|
#ifdef IMLIB_ENABLE_DMA2D
|
||||||
imlib_draw_row_deinit_all();
|
imlib_draw_row_deinit_all();
|
||||||
#endif
|
#endif
|
||||||
|
#if MICROPY_PY_LWIP
|
||||||
|
gc_sweep_all();
|
||||||
|
#endif
|
||||||
first_soft_reset = false;
|
first_soft_reset = false;
|
||||||
goto soft_reset;
|
goto soft_reset;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user