Also set second period field

This commit is contained in:
Tyeth Gundry 2025-08-18 16:17:29 +01:00
parent 6dcfecc8cb
commit ff9790297e

View file

@ -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: