diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index e97e20f..c3bdd63 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -684,7 +684,9 @@ wificonfigresult_t WiFiConfig::_setupAP(wificonfig_cb cb) dnsServer->stop(); server->end(); #ifdef USE_WIFICONFIG_ARDUINO_OTA +# if defined(ESP32) ArduinoOTA.end(); +# endif #endif return WCR_TIMEOUT; // nepripojeno, vyprsel timeout konfiguracniho AP }