diff --git a/companion/src/firmwares/edgetx/yaml_rawswitch.cpp b/companion/src/firmwares/edgetx/yaml_rawswitch.cpp index c35bf04a7..21b78a197 100644 --- a/companion/src/firmwares/edgetx/yaml_rawswitch.cpp +++ b/companion/src/firmwares/edgetx/yaml_rawswitch.cpp @@ -149,7 +149,8 @@ RawSwitch YamlRawSwitchDecode(const std::string& sw_str) } } else { - // no match found + YAML::Node(sw_str) >> rhs.type; + rhs.index = 0; } if (neg) {