allow empty circuit if not part of topic format
This commit is contained in:
Regular → Executable
+1
-1
@@ -508,7 +508,7 @@ void MqttHandler::notifyTopic(const string& topic, const string& data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (circuit.empty() || name.empty()) {
|
if (name.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logOtherInfo("mqtt", "received topic for %s %s", circuit.c_str(), name.c_str());
|
logOtherInfo("mqtt", "received topic for %s %s", circuit.c_str(), name.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user