temp fix for crash with ESP32-S2

This commit is contained in:
Jason2866 2022-08-22 13:12:33 +02:00
parent 810eb2ee79
commit 6d470a6429
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ typedef enum {
} FlashMode_t;
*/
String ESP_getFlashChipMode(void) {
#if ESP8266
#if ESP8266 || CONFIG_IDF_TARGET_ESP32S2
uint32_t flash_mode = ESP.getFlashChipMode();
#else
uint32_t spi_ctrl = REG_READ(SPI_CTRL_REG(0));