diff --git a/companion/src/firmwares/edgetx/yaml_modeldata.cpp b/companion/src/firmwares/edgetx/yaml_modeldata.cpp index e3270ddc6..84cbf433d 100644 --- a/companion/src/firmwares/edgetx/yaml_modeldata.cpp +++ b/companion/src/firmwares/edgetx/yaml_modeldata.cpp @@ -1334,6 +1334,9 @@ bool convert::decode(const Node& node, ModelData& rhs) node["switchWarningState"] >> switchWarningState.src_str; rhs.switchWarningStates = switchWarningState.toCpn(); rhs.switchWarningEnable = ~switchWarningState.enabled; + } else { + rhs.switchWarningStates = 0; + rhs.switchWarningEnable = ~0; } node["thrTrimSw"] >> rhs.thrTrimSwitch;