Skip to content

Commit

Permalink
fix(build): Fix ArduinoOTA MDNS guard
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Nov 12, 2024
1 parent c4437fc commit 19bb262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/ArduinoOTA/src/ArduinoOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void ArduinoOTAClass::begin() {
sprintf(tmp, "esp32-%02x%02x%02x%02x%02x%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
_hostname = tmp;
}
#ifdef MDNS_MAX_INTERFACES
#ifdef CONFIG_MDNS_MAX_INTERFACES
if (_mdnsEnabled) {
MDNS.begin(_hostname.c_str());
MDNS.enableArduino(_port, (_password.length() > 0));
Expand Down Expand Up @@ -360,7 +360,7 @@ void ArduinoOTAClass::_runUpdate() {
void ArduinoOTAClass::end() {
_initialized = false;
_udp_ota.stop();
#ifdef MDNS_MAX_INTERFACES
#ifdef CONFIG_MDNS_MAX_INTERFACES
if (_mdnsEnabled) {
MDNS.end();
}
Expand Down

0 comments on commit 19bb262

Please sign in to comment.