fix minor build issue under esp8266
This commit is contained in:
parent
49c282b286
commit
bbcdf3defb
@ -39,7 +39,9 @@ void OTASettingsService::writeToJsonObject(JsonObject& root) {
|
|||||||
|
|
||||||
void OTASettingsService::configureArduinoOTA() {
|
void OTASettingsService::configureArduinoOTA() {
|
||||||
if (_arduinoOTA){
|
if (_arduinoOTA){
|
||||||
|
#if defined(ESP_PLATFORM)
|
||||||
_arduinoOTA->end();
|
_arduinoOTA->end();
|
||||||
|
#endif
|
||||||
delete _arduinoOTA;
|
delete _arduinoOTA;
|
||||||
_arduinoOTA = nullptr;
|
_arduinoOTA = nullptr;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <esp_wifi.h>
|
|
||||||
#include <SecuritySettingsService.h>
|
#include <SecuritySettingsService.h>
|
||||||
#include <WiFiSettingsService.h>
|
#include <WiFiSettingsService.h>
|
||||||
#include <APSettingsService.h>
|
#include <APSettingsService.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user