diff options
Diffstat (limited to 'ports/esp32/machine_sdcard.c')
| -rw-r--r-- | ports/esp32/machine_sdcard.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ports/esp32/machine_sdcard.c b/ports/esp32/machine_sdcard.c index 40686508a..c9a9face7 100644 --- a/ports/esp32/machine_sdcard.c +++ b/ports/esp32/machine_sdcard.c @@ -31,6 +31,8 @@ #include "py/mperrno.h" #include "extmod/vfs_fat.h" +#if MICROPY_HW_ENABLE_SDCARD + #include "driver/sdmmc_host.h" #include "driver/sdspi_host.h" #include "sdmmc_cmd.h" @@ -50,10 +52,6 @@ // Hosts are de-inited in __del__. Slots do not need de-initing. // -// Currently the ESP32 Library doesn't support MMC cards, so -// we don't enable on MICROPY_HW_ENABLE_MMCARD. -#if MICROPY_HW_ENABLE_SDCARD - // Forward declaration const mp_obj_type_t machine_sdcard_type; |
