From aec6dfccbef0ab8d27cfa19e1486851a4317621e Mon Sep 17 00:00:00 2001 From: john Date: Sun, 2 Dec 2018 11:34:23 +0100 Subject: [PATCH] allow empty circuit if not part of topic format --- src/ebusd/mqtthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/ebusd/mqtthandler.cpp diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp old mode 100644 new mode 100755 index f3ae76eb..9c0f9983 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -508,7 +508,7 @@ void MqttHandler::notifyTopic(const string& topic, const string& data) { } } } - if (circuit.empty() || name.empty()) { + if (name.empty()) { return; } logOtherInfo("mqtt", "received topic for %s %s", circuit.c_str(), name.c_str());