语音字符未设置传过来是null
This commit is contained in:
parent
f1157fbed3
commit
90de7b9892
@ -1053,12 +1053,12 @@ void writeRoute(String topicStr) {
|
|||||||
double y = obj["tasks"][fc.writeSeq]["y"];
|
double y = obj["tasks"][fc.writeSeq]["y"];
|
||||||
double z = obj["tasks"][fc.writeSeq]["z"];
|
double z = obj["tasks"][fc.writeSeq]["z"];
|
||||||
String str = obj["tasks"][fc.writeSeq]["sound"];
|
String str = obj["tasks"][fc.writeSeq]["sound"];
|
||||||
if ((str!=NULL)&&(str != ""))
|
if ((str!=NULL)&&(str != "")&&(str != "null"))
|
||||||
{
|
{
|
||||||
fc.questVoiceStr = str;
|
fc.questVoiceStr = str;
|
||||||
// printf("writevoice str: %s \n", fc.questVoiceStr);
|
//printf("writevoice str: %s \n", fc.questVoiceStr);
|
||||||
// if (fc.writeSeq==0)
|
// if (fc.writeSeq==0)
|
||||||
// fhc.playText(fc.questVoiceStr);
|
//fc.playText(fc.questVoiceStr);
|
||||||
}
|
}
|
||||||
fc.logln((char*)"frame--");
|
fc.logln((char*)"frame--");
|
||||||
fc.logln(frame);
|
fc.logln(frame);
|
||||||
|
Loading…
Reference in New Issue
Block a user