feat: add support for ExpressLRS optional arming method (#5641)
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
@@ -234,6 +234,12 @@ QString ModelPrinter::printModule(int idx)
|
||||
if (module.protocol == PULSES_GHOST) {
|
||||
str << printLabelValue(tr("Raw 12 bits"), printBoolean(module.ghost.raw12bits, BOOLEAN_YN));
|
||||
}
|
||||
if (module.protocol == PULSES_CROSSFIRE) {
|
||||
str << printLabelValue(tr("Arming mode"), module.crsfArmingModeToString());
|
||||
if (module.crsf.crsfArmingMode == ModuleData::CRSF_ARMING_MODE_SWITCH) {
|
||||
str << printLabelValue(tr("Switch"), RawSwitch(module.crsf.crsfArmingTrigger).toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
result = str.join(" ");
|
||||
|
||||
Reference in New Issue
Block a user