Also set second period field
This commit is contained in:
parent
6dcfecc8cb
commit
ff9790297e
1 changed files with 1 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ def convert_components_to_json():
|
||||||
component_info["isGps"] = True
|
component_info["isGps"] = True
|
||||||
component_info["gps"] = {}
|
component_info["gps"] = {}
|
||||||
gps_data = component_data.get("gps", {})
|
gps_data = component_data.get("gps", {})
|
||||||
|
component_info["gps"]["period"] = gps_data.get("period", 30000)
|
||||||
if "commands_ubxes" in gps_data:
|
if "commands_ubxes" in gps_data:
|
||||||
component_info["gps"]["commands_ubxes"] = gps_data["commands_ubxes"]
|
component_info["gps"]["commands_ubxes"] = gps_data["commands_ubxes"]
|
||||||
if "commands_pmtks" in gps_data:
|
if "commands_pmtks" in gps_data:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue