修改故障读取格式
This commit is contained in:
@@ -140,7 +140,7 @@ bool TaskManger::OnNewMail(MOOSMSG_LIST &NewMail)
|
|||||||
Json::Reader a;
|
Json::Reader a;
|
||||||
a.parse(msg_str,j);
|
a.parse(msg_str,j);
|
||||||
// int fault_level = j["FaultLevel"].asInt();
|
// int fault_level = j["FaultLevel"].asInt();
|
||||||
if(j["FaultLevel"] != NULL)
|
if(!j["FaultLevel"].empty()) //TODO: 修改故障码支持
|
||||||
{
|
{
|
||||||
state = FAULT;
|
state = FAULT;
|
||||||
if(!j["FaultMsgs"].isMember("uMission_status_fault"))
|
if(!j["FaultMsgs"].isMember("uMission_status_fault"))
|
||||||
|
|||||||
Reference in New Issue
Block a user