diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-12-07 11:06:33 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-12-07 11:07:56 -0500 |
| commit | 169b4875099869d5d2549e9b717516e4045428d0 (patch) | |
| tree | b74dfea353ca46ab68aae15ab5af041c59bdfeae /main.c | |
| parent | a7ec4a0489d4ff6ca1d9f0f750ba5f18994d32f8 (diff) | |
Include wifi.radio singleton in gc
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -95,6 +95,10 @@ #include "common-hal/canio/CAN.h" #endif +#if CIRCUITPY_WIFI +#include "shared-bindings/wifi/__init__.h" +#endif + #if MICROPY_ENABLE_PYSTACK static size_t PLACE_IN_DTCM_BSS(_pystack[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)]); #endif @@ -560,6 +564,10 @@ void gc_collect(void) { common_hal_bleio_gc_collect(); #endif + #if CIRCUITPY_WIFI + common_hal_wifi_gc_collect(); + #endif + // This naively collects all object references from an approximate stack // range. gc_collect_root((void**)sp, ((uint32_t)port_stack_get_top() - sp) / sizeof(uint32_t)); |
