Skip to content

Commit 90978c8

Browse files
authored
Merge pull request #8517 from Jason2866/esp-idf-v5.1-libs-1
fix flash mode read out for C6
2 parents 9d3fa6b + d663575 commit 90978c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/Esp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ FlashMode_t EspClass::getFlashChipMode(void)
366366
#if CONFIG_IDF_TARGET_ESP32S2
367367
uint32_t spi_ctrl = REG_READ(PERIPHS_SPI_FLASH_CTRL);
368368
#else
369-
#if CONFIG_IDF_TARGET_ESP32H2
369+
#if CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6
370370
uint32_t spi_ctrl = REG_READ(DR_REG_SPI0_BASE + 0x8);
371371
#else
372372
uint32_t spi_ctrl = REG_READ(SPI_CTRL_REG(0));

0 commit comments

Comments
 (0)