fix(gps): I2C gps sub-properties set before parent creation

This commit is contained in:
Tyeth Gundry 2025-08-18 16:09:27 +01:00
parent 9fa0d9c025
commit 04918f1d11

View file

@ -160,6 +160,7 @@ def convert_components_to_json():
# Special handling for GPS over I2C
if component_data.get("isGps", False):
component_info["isGps"] = True
component_info["gps"] = {}
gps_data = component_data.get("gps", {})
if "commands_ubxes" in gps_data:
component_info["gps"]["commands_ubxes"] = gps_data["commands_ubxes"]