Merge pull request #1158 from openmv/lwip_socks

Call gc_sweep_all on soft-reset.
This commit is contained in:
Ibrahim Abd Elkader 2021-02-10 23:25:09 +02:00 committed by GitHub
commit 6a04514887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }