Skip to content

Commit

Permalink
ota: fix -latest build
Browse files Browse the repository at this point in the history
enum case only valid for -git, both -latest and base should be excluded
  • Loading branch information
mcspr committed Dec 7, 2024
1 parent 930b130 commit 6500f45
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/espurna/ota_arduinoota.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6500f45

Please sign in to comment.