Skip to content

Commit

Permalink
Merge pull request #8517 from Jason2866/esp-idf-v5.1-libs-1
Browse files Browse the repository at this point in the history
fix flash mode read out for C6
  • Loading branch information
me-no-dev committed Aug 12, 2023
2 parents 9d3fa6b + d663575 commit 90978c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/Esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ FlashMode_t EspClass::getFlashChipMode(void)
#if CONFIG_IDF_TARGET_ESP32S2
uint32_t spi_ctrl = REG_READ(PERIPHS_SPI_FLASH_CTRL);
#else
#if CONFIG_IDF_TARGET_ESP32H2
#if CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6
uint32_t spi_ctrl = REG_READ(DR_REG_SPI0_BASE + 0x8);
#else
uint32_t spi_ctrl = REG_READ(SPI_CTRL_REG(0));
Expand Down

0 comments on commit 90978c8

Please sign in to comment.