diff --git a/components/driver/sdspi_host.c b/components/driver/sdspi_host.c index f47b59003..e0faa73a6 100644 --- a/components/driver/sdspi_host.c +++ b/components/driver/sdspi_host.c @@ -310,7 +310,7 @@ esp_err_t sdspi_host_init_slot(int slot, const sdspi_slot_config_t* slot_config) // Configure CD and WP pins io_conf = (gpio_config_t) { .intr_type = GPIO_PIN_INTR_DISABLE, - .mode = GPIO_MODE_OUTPUT, + .mode = GPIO_MODE_INPUT, .pin_bit_mask = 0, .pull_up_en = true };