From e76ec8b18aa9f7590d2c7c546f38afb5ec212755 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Sat, 11 Apr 2020 04:54:13 -0300 Subject: [PATCH] Fix ESP32 Compilation --- tasmota/settings.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/settings.ino b/tasmota/settings.ino index a406b60b7..a1fc36fea 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -591,9 +591,9 @@ void EspErase(uint32_t start_sector, uint32_t end_sector) } } +#ifdef ESP8266 void SettingsErase(uint8_t type) { -#ifdef ESP8266 /* For Arduino core and SDK: Erase only works from flash start address to SDK recognized flash end address (flashchip->chip_size = ESP.getFlashChipSize). @@ -645,8 +645,8 @@ void SettingsErase(uint8_t type) // EspErase(_sectorStart, _sectorEnd); // Arduino core and SDK - erases flash as seen by SDK EsptoolErase(_sectorStart, _sectorEnd); // Esptool - erases flash completely #endif // FIRMWARE_MINIMAL -#endif // ESP8266 } +#endif // ESP8266 void SettingsSdkErase(void) {