fix minor build issue under esp8266

This commit is contained in:
Rick Watson 2019-06-25 23:31:58 +01:00
parent 49c282b286
commit bbcdf3defb
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,9 @@ void OTASettingsService::writeToJsonObject(JsonObject& root) {
void OTASettingsService::configureArduinoOTA() {
if (_arduinoOTA){
#if defined(ESP_PLATFORM)
_arduinoOTA->end();
#endif
delete _arduinoOTA;
_arduinoOTA = nullptr;
}

View File

@ -10,7 +10,6 @@
#endif
#include <FS.h>
#include <esp_wifi.h>
#include <SecuritySettingsService.h>
#include <WiFiSettingsService.h>
#include <APSettingsService.h>