Skip to content

Commit bbcdf3d

Browse files
committed
fix minor build issue under esp8266
1 parent 49c282b commit bbcdf3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/OTASettingsService.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ void OTASettingsService::writeToJsonObject(JsonObject& root) {
3939

4040
void OTASettingsService::configureArduinoOTA() {
4141
if (_arduinoOTA){
42+
#if defined(ESP_PLATFORM)
4243
_arduinoOTA->end();
44+
#endif
4345
delete _arduinoOTA;
4446
_arduinoOTA = nullptr;
4547
}

src/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#endif
1111

1212
#include <FS.h>
13-
#include <esp_wifi.h>
1413
#include <SecuritySettingsService.h>
1514
#include <WiFiSettingsService.h>
1615
#include <APSettingsService.h>

0 commit comments

Comments
 (0)