Skip to content

Commit 48ffc50

Browse files
esp32: Update machine_sdcard.c.
Signed-off-by: Vincent1-python <[email protected]>
1 parent d0bc204 commit 48ffc50

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ports/esp32/machine_sdcard.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ static mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
405405
}
406406
}
407407
#endif
408-
409-
DEBUG_printf(" Calling init_slot()");
410-
check_esp_err(sdmmc_host_init_slot(self->host.slot, &slot_config));
408+
409+
DEBUG_printf(" Calling init_slot()");
410+
check_esp_err(sdmmc_host_init_slot(self->host.slot, &slot_config));
411411
}
412412
#endif // SOC_SDMMC_HOST_SUPPORTED
413413

@@ -419,6 +419,7 @@ static mp_obj_t sd_deinit(mp_obj_t self_in) {
419419
sdcard_card_obj_t *self = self_in;
420420

421421
DEBUG_printf("De-init host\n");
422+
422423
if (self->flags & SDCARD_CARD_FLAGS_HOST_INIT_DONE) {
423424
if (self->host.flags & SDMMC_HOST_FLAG_DEINIT_ARG) {
424425
self->host.deinit_p(self->host.slot);

0 commit comments

Comments
 (0)