From 53e93215df029310d5ab392180902a35aebfd41a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 25 Jan 2020 13:45:26 +0100 Subject: [PATCH] Fix trigger SYSTEM#BOOT Fix trigger SYSTEM#BOOT when mdns is disabled an no mqqthost is set (#7552) --- tasmota/xdrv_02_mqtt.ino | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tasmota/xdrv_02_mqtt.ino b/tasmota/xdrv_02_mqtt.ino index 38bae9a01..529b3ce3c 100644 --- a/tasmota/xdrv_02_mqtt.ino +++ b/tasmota/xdrv_02_mqtt.ino @@ -667,11 +667,6 @@ void MqttCheck(void) if (!MqttIsConnected()) { global_state.mqtt_down = 1; if (!Mqtt.retry_counter) { -#ifdef USE_DISCOVERY -#ifdef MQTT_HOST_DISCOVERY - if (!strlen(SettingsText(SET_MQTT_HOST)) && !Wifi.mdns_begun) { return; } -#endif // MQTT_HOST_DISCOVERY -#endif // USE_DISCOVERY MqttReconnect(); } else { Mqtt.retry_counter--; @@ -681,7 +676,9 @@ void MqttCheck(void) } } else { global_state.mqtt_down = 0; - if (Mqtt.initial_connection_state) MqttReconnect(); + if (Mqtt.initial_connection_state) { + MqttReconnect(); + } } }