Skip to content

Commit 78098e6

Browse files
author
Adrian McEwen
committed
Fix bug where messages sent to the group topic were incorrectly ignored. Fixes #5
1 parent 453cc0c commit 78098e6

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)