]> granicus.if.org Git - esp-idf/commitdiff
sdspi: fix CD and WP incorrectly configured as outputs
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 23 Apr 2018 06:35:40 +0000 (14:35 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 23 Apr 2018 06:35:40 +0000 (14:35 +0800)
components/driver/sdspi_host.c

index f47b590031fcb727863d04adc01daaf1aadd5bba..e0faa73a686dc82fa6abe17a8f01fc8160f8ecc2 100644 (file)
@@ -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\r
     io_conf = (gpio_config_t) {\r
         .intr_type = GPIO_PIN_INTR_DISABLE,\r
-        .mode = GPIO_MODE_OUTPUT,\r
+        .mode = GPIO_MODE_INPUT,\r
         .pin_bit_mask = 0,\r
         .pull_up_en = true\r
     };\r