Temporarily disable MDNS when MQTT is enabled (#5418)

Leads to a panic
This commit is contained in:
GUVWAF 2024-11-21 21:11:50 +01:00 committed by GitHub
parent 1089469f82
commit dbc5ec27f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,11 @@ static void onNetworkConnected()
LOG_INFO("Start WiFi network services");
// start mdns
if (!MDNS.begin("Meshtastic")) {
if (
#ifdef ARCH_RP2040
!moduleConfig.mqtt.enabled && // MDNS is not supported when MQTT is enabled on ARCH_RP2040
#endif
!MDNS.begin("Meshtastic")) {
LOG_ERROR("Error setting up MDNS responder!");
} else {
LOG_INFO("mDNS Host: Meshtastic.local");