fix(cpn): Improve module and protocol conversion (#2237)

This commit is contained in:
elecpower
2022-09-01 20:56:59 +10:00
committed by Peter Feerick
parent c6b7aca5fa
commit 8aa2b55c50
5 changed files with 29 additions and 7 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ void ModelData::convert(RadioDataConversionState & cstate)
origin = QString::number(cstate.modelIdx+1);
cstate.setOrigin(tr("Model: ") % origin);
cstate.setComponent("SET", 0);
cstate.setComponent("Settings", 0);
if (thrTraceSrc && (int)thrTraceSrc < cstate.fromBoard.getCapability(Board::Pots) + cstate.fromBoard.getCapability(Board::Sliders)) {
cstate.setSubComp(tr("Throttle Source"));
thrTraceSrc = RawSource(SOURCE_TYPE_STICK, (int)thrTraceSrc + 3).convert(cstate).index - 3;