feat: Delay the set heartbeat and get dms version after dms init finished.
This commit is contained in:
@@ -214,11 +214,7 @@ void DeviceManager::initDevice()
|
|||||||
mSetSimulatorModeAction->setSendData("{ \"code\":0, \"info\":\"1\"}");
|
mSetSimulatorModeAction->setSendData("{ \"code\":0, \"info\":\"1\"}");
|
||||||
mSetSimulatorModeAction->execute();
|
mSetSimulatorModeAction->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
mSetHeartBeatAction->setSendData("{ \"code\":0, \"info\":\"0\"}");
|
|
||||||
mSetHeartBeatAction->execute();
|
|
||||||
mSoftwareVersion = "DMS Version Loading";
|
mSoftwareVersion = "DMS Version Loading";
|
||||||
mGetSoftwareVersionAction->execute();
|
|
||||||
|
|
||||||
mCheckInitStatusTimer = startTimer(500);
|
mCheckInitStatusTimer = startTimer(500);
|
||||||
}
|
}
|
||||||
@@ -232,6 +228,10 @@ void DeviceManager::initGUI(bool aIsInitSucceed)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mSetHeartBeatAction->setSendData("{ \"code\":0, \"info\":\"0\"}");
|
||||||
|
mSetHeartBeatAction->execute();
|
||||||
|
mGetSoftwareVersionAction->execute();
|
||||||
|
|
||||||
if(aIsInitSucceed)
|
if(aIsInitSucceed)
|
||||||
{
|
{
|
||||||
if(getDeviceStatus() != DeviceStatus::Rready)
|
if(getDeviceStatus() != DeviceStatus::Rready)
|
||||||
|
|||||||
Reference in New Issue
Block a user