From 7b2348baadd61d2eb9ef3bf0a069169686c3abd2 Mon Sep 17 00:00:00 2001 From: wanglei Date: Tue, 5 Nov 2019 13:04:50 +0800 Subject: [PATCH] fix bug that wrap mode not disabled in none-QIO mode --- components/bootloader_support/src/flash_qio_mode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bootloader_support/src/flash_qio_mode.c b/components/bootloader_support/src/flash_qio_mode.c index 577994d561..d05c676b46 100644 --- a/components/bootloader_support/src/flash_qio_mode.c +++ b/components/bootloader_support/src/flash_qio_mode.c @@ -211,12 +211,12 @@ void bootloader_enable_qio_mode(void) if (i == NUM_CHIPS - 1) { ESP_LOGI(TAG, "Enabling default flash chip QIO"); } -#if CONFIG_IDF_TARGET_ESP32S2BETA - spi_flash_wrap_set(FLASH_WRAP_MODE_DISABLE); -#endif enable_qio_mode(chip_data[i].read_status_fn, chip_data[i].write_status_fn, chip_data[i].status_qio_bit); +#if CONFIG_IDF_TARGET_ESP32S2BETA + spi_flash_wrap_set(FLASH_WRAP_MODE_DISABLE); +#endif } static esp_err_t enable_qio_mode(read_status_fn_t read_status_fn,