diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-08-13 17:47:35 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-08-13 17:47:35 -0400 |
| commit | d0ffdda5bb8f81fcf5002e2a75b4fef5b652fd7a (patch) | |
| tree | d5a3fb733b92f821937fac6cba28ae1b26317c70 /main.c | |
| parent | 44c9c43cd15ea7be3192313b1a1bb204743492a1 (diff) | |
fix reset logic to not do pin ops or heap ops at bad times
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -212,6 +212,8 @@ bool maybe_run_list(const char ** filenames, pyexec_result_t* exec_result) { } void cleanup_after_vm(supervisor_allocation* heap) { + // Reset port-independent devices, like CIRCUITPY_BLEIO_HCI. + reset_devices(); // Turn off the display and flush the fileystem before the heap disappears. #if CIRCUITPY_DISPLAYIO reset_displays(); |
