From 78098e612d6e9dc8173d41be42f0e035985dca3c Mon Sep 17 00:00:00 2001 From: Adrian McEwen Date: Wed, 18 Nov 2020 23:41:50 +0000 Subject: [PATCH] Fix bug where messages sent to the group topic were incorrectly ignored. Fixes #5 --- wled00/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/mqtt.cpp b/wled00/mqtt.cpp index 15cb0c5df..8e6f2e360 100644 --- a/wled00/mqtt.cpp +++ b/wled00/mqtt.cpp @@ -68,7 +68,7 @@ void onMqttMessage(char* topic, char* payload, AsyncMqttClientMessageProperties if (strncmp(topic, mqttDeviceTopic, topicPrefixLen) == 0) { topic += topicPrefixLen; } else { - size_t topic_prefix_len = strlen(mqttGroupTopic); + topicPrefixLen = strlen(mqttGroupTopic); if (strncmp(topic, mqttGroupTopic, topicPrefixLen) == 0) { topic += topicPrefixLen; } else {