File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -251,8 +251,9 @@ void sdioio_reset() {
251251 slot_in_use [i ] = false;
252252 }
253253 }
254-
255- // don't we have to deinit any currently used slots here?
254+ if (!slot_in_use [0 ] && !slot_in_use [1 ]) {
255+ sdmmc_host_deinit ();
256+ }
256257
257258 return ;
258259}
Original file line number Diff line number Diff line change 4040#include "shared-bindings/socketpool/__init__.h"
4141#include "shared-module/os/__init__.h"
4242
43+ #if CIRCUITPY_SDIOIO
44+ #include "common-hal/sdioio/SDCard.h"
45+ #endif
46+
4347#if CIRCUITPY_TOUCHIO_USE_NATIVE
4448#include "peripherals/touch.h"
4549#endif
@@ -348,6 +352,10 @@ void reset_port(void) {
348352 uart_reset ();
349353 #endif
350354
355+ #if CIRCUITPY_SDIOIO
356+ sdioio_reset ();
357+ #endif
358+
351359 #if CIRCUITPY_DUALBANK
352360 dualbank_reset ();
353361 #endif
You can’t perform that action at this time.
0 commit comments