sdspi: fix CD and WP incorrectly configured as outputs

This commit is contained in:
Ivan Grokhotkov 2018-04-23 14:35:40 +08:00
parent 2a7d85cfa4
commit 92a16ac6e6

View 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
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
};