Skip to content

Commit 7f9da22

Browse files
authored
Merge pull request wled#1356 from mcqn/fix-bug-with-mqtt-group-topics
Fix bug where messages sent to the group topic were incorrectly ignored
2 parents 453cc0c + 78098e6 commit 7f9da22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/mqtt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void onMqttMessage(char* topic, char* payload, AsyncMqttClientMessageProperties
6868
if (strncmp(topic, mqttDeviceTopic, topicPrefixLen) == 0) {
6969
topic += topicPrefixLen;
7070
} else {
71-
size_t topic_prefix_len = strlen(mqttGroupTopic);
71+
topicPrefixLen = strlen(mqttGroupTopic);
7272
if (strncmp(topic, mqttGroupTopic, topicPrefixLen) == 0) {
7373
topic += topicPrefixLen;
7474
} else {

0 commit comments

Comments
 (0)