diff --git a/src/mqtt/MQTT.cpp b/src/mqtt/MQTT.cpp index a3ae51ae1..a1c31c26b 100644 --- a/src/mqtt/MQTT.cpp +++ b/src/mqtt/MQTT.cpp @@ -165,7 +165,7 @@ void MQTT::reconnect() sendSubscriptions(); } else DEBUG_MSG("Failed to contact MQTT server...\n"); -#if HAS_WIFI +#if HAS_WIFI && !defined(ARCH_PORTDUINO) WiFi.disconnect(false, true); triggerReconnect(); #endif