mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 19:59:50 +03:00
fix
This commit is contained in:
@@ -245,7 +245,8 @@ else
|
||||
|
||||
itemName=topic+pfxlen;
|
||||
|
||||
if(!strcmp(itemName,CMDTOPIC)) {
|
||||
if(!strcmp(itemName,CMDTOPIC) && payload && (strlen((char*) payload)>1)) {
|
||||
// mqttClient.publish(topic, "");
|
||||
cmd_parse((char *)payload);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ int owUpdate() {
|
||||
}//if
|
||||
} //while
|
||||
|
||||
debugSerial<<F("1-wire count: ")<<t_count;
|
||||
debugSerial<<F("1-wire count: ")<<t_count<<endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user