【类 型】:fix
【主 题】:语音播报bug 【描 述】: [原因]:值判断sound字段是为'' 遍历是后续航点没有sound字段 值为null 遍历到最后一个时 语音播报属性会被替换成null [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
d35db6e058
commit
512ff92d8a
@ -334,7 +334,7 @@ void writeRoute(String todoJson)
|
||||
double y = obj["tasks"][fc.writeSeq]["y"];
|
||||
double z = obj["tasks"][fc.writeSeq]["z"];
|
||||
String str = obj["tasks"][fc.writeSeq]["sound"];
|
||||
if (str != "")
|
||||
if (str.length() > 0 && str != "null")
|
||||
{
|
||||
fc.questVoiceStr = str;
|
||||
fc.pubMQTTmsg("demo", str);
|
||||
|
Loading…
Reference in New Issue
Block a user