From d37b5d3c5704e184b982d192e204c114fb92507b Mon Sep 17 00:00:00 2001 From: elecpower Date: Mon, 13 Dec 2021 09:48:16 +1100 Subject: [PATCH] Thr trim switch --- companion/src/firmwares/edgetx/yaml_modeldata.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/companion/src/firmwares/edgetx/yaml_modeldata.cpp b/companion/src/firmwares/edgetx/yaml_modeldata.cpp index c09a15292..4ebb6952d 100644 --- a/companion/src/firmwares/edgetx/yaml_modeldata.cpp +++ b/companion/src/firmwares/edgetx/yaml_modeldata.cpp @@ -376,7 +376,7 @@ Node convert::encode(const ModelData& rhs) node["thrTraceSrc"] = thrTrace.src; // switchWarningStates - // thrTrimSwitch + node["thrTrimSw"] = rhs.thrTrimSwitch; // potsWarningMode // potsWarnEnabled[] // potsWarnPosition[] @@ -453,7 +453,6 @@ bool convert::decode(const Node& node, ModelData& rhs) node["logicalSw"] >> rhs.logicalSw; node["customFn"] >> rhs.customFn; - // swashRingData if (node["swashR"]) { const auto& swashR = node["swashR"]; if (!swashR.IsMap()) return false; @@ -465,7 +464,7 @@ bool convert::decode(const Node& node, ModelData& rhs) rhs.thrTraceSrc = thrTrace.toCpn(); // switchWarningStates - // thrTrimSwitch + node["thrTrimSw"] >> rhs.thrTrimSwitch; // potsWarningMode // potsWarnEnabled[] // potsWarnPosition[]