From 1a2c810fdc40f9c46ccfca92449174d16c93c5c6 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 26 Jan 2025 07:53:43 +0100 Subject: [PATCH] avoid poll on scan messages --- src/lib/ebus/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/message.cpp b/src/lib/ebus/message.cpp index ad84cbdd..aabb04db 100644 --- a/src/lib/ebus/message.cpp +++ b/src/lib/ebus/message.cpp @@ -111,7 +111,7 @@ Message::Message(const string& filename, const string& circuit, const string& le m_pollPriority(pollPriority), m_usedByCondition(false), m_isScanMessage(false), m_condition(condition), m_availableSinceTime(0), m_dataHandlerState(0), m_lastUpdateTime(0), m_lastChangeTime(0), m_pollOrder(0), m_lastPollTime(0) { - if (circuit == "scan") { + if (strcasecmp(circuit.c_str(), "scan") == 0) { setScanMessage(); m_pollPriority = 0; }