From 6500f45d59304fad953a5feee3072866c612a9a3 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 7 Dec 2024 15:08:44 +0300 Subject: [PATCH] ota: fix -latest build enum case only valid for -git, both -latest and base should be excluded --- code/espurna/ota_arduinoota.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/espurna/ota_arduinoota.cpp b/code/espurna/ota_arduinoota.cpp index 905ef3d089..067cec5e66 100644 --- a/code/espurna/ota_arduinoota.cpp +++ b/code/espurna/ota_arduinoota.cpp @@ -100,7 +100,13 @@ void error(ota_error_t error) { break; #if !defined(ARDUINO_ESP8266_RELEASE_2_7_2) \ && !defined(ARDUINO_ESP8266_RELEASE_2_7_3) \ -&& !defined(ARDUINO_ESP8266_RELEASE_2_7_4) +&& !defined(ARDUINO_ESP8266_RELEASE_2_7_4) \ +&& !defined(ARDUINO_ESP8266_RELEASE_3_0_0) \ +&& !defined(ARDUINO_ESP8266_RELEASE_3_0_1) \ +&& !defined(ARDUINO_ESP8266_RELEASE_3_0_2) \ +&& !defined(ARDUINO_ESP8266_RELEASE_3_1_0) \ +&& !defined(ARDUINO_ESP8266_RELEASE_3_1_1) \ +&& !defined(ARDUINO_ESP8266_RELEASE_3_1_2) case OTA_ERASE_SETTINGS_ERROR: reason = STRING_VIEW("Settings erase"); break;