From 29a95f79c070253e65e191aaa3b34923f64c6c55 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Fri, 26 Apr 2019 03:59:47 +0300 Subject: [PATCH] fix --- lighthub/main.cpp | 3 ++- lighthub/owTerm.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 99cdb78..158c5b7 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -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; } diff --git a/lighthub/owTerm.cpp b/lighthub/owTerm.cpp index 118907c..8bc24ae 100644 --- a/lighthub/owTerm.cpp +++ b/lighthub/owTerm.cpp @@ -76,7 +76,7 @@ int owUpdate() { }//if } //while - debugSerial<