From 92a16ac6e68d87453d5ba40c6bad82b078310280 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 23 Apr 2018 14:35:40 +0800 Subject: [PATCH] sdspi: fix CD and WP incorrectly configured as outputs --- components/driver/sdspi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };