diff --git a/companion/src/firmwares/edgetx/yaml_rawswitch.cpp b/companion/src/firmwares/edgetx/yaml_rawswitch.cpp index af1a9f0ea..b43fea0db 100644 --- a/companion/src/firmwares/edgetx/yaml_rawswitch.cpp +++ b/companion/src/firmwares/edgetx/yaml_rawswitch.cpp @@ -63,7 +63,8 @@ Node convert::encode(const RawSwitch& rhs) switch (rhs.type) { case SWITCH_TYPE_SWITCH: sw_str += 'S'; - sw_str += 'A' + sval; + sw_str += 'A' + (sval - 1) / 3; + sw_str += std::to_string((sval - 1) % 3); break; case SWITCH_TYPE_VIRTUAL: