Skip to content

Commit

Permalink
Fix compilation of ArduinoOTA when no global MDNS is available (#8478)
Browse files Browse the repository at this point in the history
  • Loading branch information
drzony authored Feb 4, 2022
1 parent 9f536e6 commit 3027aca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/ArduinoOTA/ArduinoOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ void ArduinoOTAClass::end() {
_initialized = false;
_udp_ota->unref();
_udp_ota = 0;
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_MDNS)
if(_useMDNS){
MDNS.end();
}
#endif
_state = OTA_IDLE;
#ifdef OTA_DEBUG
OTA_DEBUG.printf("OTA server stopped.\n");
Expand Down

0 comments on commit 3027aca

Please sign in to comment.