Fixed pot and slider names for 9XE

This commit is contained in:
Damjan Adamic
2015-06-25 18:38:16 +02:00
parent a8a3a7e29a
commit 2f2b5e2ebe
2 changed files with 6 additions and 1 deletions
@@ -34,6 +34,7 @@ void CalibrationPanel::setupPotConfig(int index, QLabel *label, AutoLineEdit *na
bool enabled = false;
if (IS_TARANIS_X9E(firmware->getBoard()) && index < 4) {
label->setText(RawSource(SOURCE_TYPE_STICK, index+NUM_STICKS).toString());
enabled = true;
}
else if (IS_TARANIS_PLUS(firmware->getBoard()) && index < 3) {
@@ -70,6 +71,10 @@ void CalibrationPanel::setupSliderConfig(int index, QLabel *label, AutoLineEdit
enabled = true;
}
if (IS_TARANIS_X9E(firmware->getBoard())) {
label->setText(RawSource(SOURCE_TYPE_STICK, index+NUM_STICKS+4).toString());
}
if (enabled) {
type->addItem(tr("None"), GeneralSettings::SLIDER_NONE);
type->addItem(tr("Slider with detent"), GeneralSettings::SLIDER_WITH_DETENT);