Skip to content

Commit 3027aca

Browse files
authored
Fix compilation of ArduinoOTA when no global MDNS is available (#8478)
1 parent 9f536e6 commit 3027aca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/ArduinoOTA/ArduinoOTA.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,11 @@ void ArduinoOTAClass::end() {
353353
_initialized = false;
354354
_udp_ota->unref();
355355
_udp_ota = 0;
356+
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_MDNS)
356357
if(_useMDNS){
357358
MDNS.end();
358359
}
360+
#endif
359361
_state = OTA_IDLE;
360362
#ifdef OTA_DEBUG
361363
OTA_DEBUG.printf("OTA server stopped.\n");

0 commit comments

Comments
 (0)