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() {
251
251
slot_in_use [i ] = false;
252
252
}
253
253
}
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
+ }
256
257
257
258
return ;
258
259
}
Original file line number Diff line number Diff line change 40
40
#include "shared-bindings/socketpool/__init__.h"
41
41
#include "shared-module/os/__init__.h"
42
42
43
+ #if CIRCUITPY_SDIOIO
44
+ #include "common-hal/sdioio/SDCard.h"
45
+ #endif
46
+
43
47
#if CIRCUITPY_TOUCHIO_USE_NATIVE
44
48
#include "peripherals/touch.h"
45
49
#endif
@@ -348,6 +352,10 @@ void reset_port(void) {
348
352
uart_reset ();
349
353
#endif
350
354
355
+ #if CIRCUITPY_SDIOIO
356
+ sdioio_reset ();
357
+ #endif
358
+
351
359
#if CIRCUITPY_DUALBANK
352
360
dualbank_reset ();
353
361
#endif
You can’t perform that action at this time.
0 commit comments