mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Fix trigger SYSTEM#BOOT
Fix trigger SYSTEM#BOOT when mdns is disabled an no mqqthost is set (#7552)
This commit is contained in:
parent
febabec3bb
commit
53e93215df
@ -667,11 +667,6 @@ void MqttCheck(void)
|
|||||||
if (!MqttIsConnected()) {
|
if (!MqttIsConnected()) {
|
||||||
global_state.mqtt_down = 1;
|
global_state.mqtt_down = 1;
|
||||||
if (!Mqtt.retry_counter) {
|
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();
|
MqttReconnect();
|
||||||
} else {
|
} else {
|
||||||
Mqtt.retry_counter--;
|
Mqtt.retry_counter--;
|
||||||
@ -681,7 +676,9 @@ void MqttCheck(void)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
global_state.mqtt_down = 0;
|
global_state.mqtt_down = 0;
|
||||||
if (Mqtt.initial_connection_state) MqttReconnect();
|
if (Mqtt.initial_connection_state) {
|
||||||
|
MqttReconnect();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user