Crudely fix switch shift for X7 in hardware tab

This commit is contained in:
Andre Bernet
2017-02-13 09:52:45 +01:00
parent a87afcecdb
commit 5fc685d598
+8
View File
@@ -33,6 +33,14 @@ void HardwarePanel::setupSwitchType(int index, QLabel * label, AutoLineEdit * na
}
name->setField(generalSettings.switchName[index], 3, this);
type->setField(generalSettings.switchConfig[index], this);
if (IS_TARANIS_X7(board)) {
if (index == 4) {
label->setText("SF");
}
else if (index == 5) {
label->setText("SH");
}
}
}
else {
label->hide();