From 90de7b9892f50ceac5b8e3600e0dcfdacba7c70b Mon Sep 17 00:00:00 2001 From: pxzleo Date: Sun, 23 Jul 2023 00:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E5=AD=97=E7=AC=A6=E6=9C=AA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BC=A0=E8=BF=87=E6=9D=A5=E6=98=AFnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e0f26a4..4243274 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1053,12 +1053,12 @@ void writeRoute(String topicStr) { double y = obj["tasks"][fc.writeSeq]["y"]; double z = obj["tasks"][fc.writeSeq]["z"]; String str = obj["tasks"][fc.writeSeq]["sound"]; - if ((str!=NULL)&&(str != "")) + if ((str!=NULL)&&(str != "")&&(str != "null")) { fc.questVoiceStr = str; - // printf("writevoice str: %s \n", fc.questVoiceStr); + //printf("writevoice str: %s \n", fc.questVoiceStr); // if (fc.writeSeq==0) - // fhc.playText(fc.questVoiceStr); + //fc.playText(fc.questVoiceStr); } fc.logln((char*)"frame--"); fc.logln(frame);