prevent boot loop caused by reset topic

This commit is contained in:
technyon
2024-12-01 05:08:55 +01:00
parent 7b1f446f15
commit dd4d0a8e0b

View File

@@ -892,7 +892,7 @@ void NukiNetwork::onMqttDataReceived(const char* topic, byte* payload, const uns
{
char* data = (char*)payload;
if(comparePrefixedPath(topic, mqtt_topic_reset) && strcmp(data, "1") == 0)
if(comparePrefixedPath(topic, mqtt_topic_reset) && strcmp(data, "1") == 0 && !mqttRecentlyConnected())
{
Log->println(F("Restart requested via MQTT."));
clearWifiFallback();