From f84c26b6152b3cd1a497bea49eca4fbc95b5e1c1 Mon Sep 17 00:00:00 2001 From: Neil Horne Date: Fri, 18 Nov 2022 14:30:23 +1100 Subject: [PATCH] cpn(fix): yaml encode/decode telemetry sensor subId (#2756) --- companion/src/firmwares/edgetx/yaml_sensordata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/firmwares/edgetx/yaml_sensordata.cpp b/companion/src/firmwares/edgetx/yaml_sensordata.cpp index d90b32554..b77d56fd6 100644 --- a/companion/src/firmwares/edgetx/yaml_sensordata.cpp +++ b/companion/src/firmwares/edgetx/yaml_sensordata.cpp @@ -47,7 +47,7 @@ Node convert::encode(const SensorData& rhs) Node cfg; if (rhs.type == SensorData::TELEM_TYPE_CUSTOM) { node["id1"]["id"] = rhs.id; - node["subid"] = rhs.subid; + node["subId"] = rhs.subid; unsigned int instance = rhs.instance; if (instance != 0) { @@ -122,7 +122,7 @@ bool convert::decode(const Node& node, SensorData& rhs) id1["id"] >> rhs.id; id1["persistentValue"] >> rhs.persistentValue; } - node["subid"] >> rhs.subid; + node["subId"] >> rhs.subid; if (node["id2"]) { Node id2 = node["id2"]; id2["instance"] >> rhs.instance;