ENH: update ota version after get_version
Change-Id: If04f1071084891c2ba13a5c3f10ac427dea6abf0
This commit is contained in:
parent
b09c972e28
commit
33a8545e2b
|
@ -4181,6 +4181,10 @@ int MachineObject::parse_json(std::string payload)
|
|||
if ((*it).contains("hw_ver"))
|
||||
ver_info.hw_ver = (*it)["hw_ver"].get<std::string>();
|
||||
module_vers.emplace(ver_info.name, ver_info);
|
||||
if (ver_info.name == "ota") {
|
||||
NetworkAgent* agent = GUI::wxGetApp().getAgent();
|
||||
if (agent) agent->track_update_property("dev_ota_version", ver_info.sw_ver);
|
||||
}
|
||||
}
|
||||
parse_version_func();
|
||||
|
||||
|
|
Loading…
Reference in New Issue