From 8b1078d0817ffdede8f6ee98617cf1c49f8cc55b Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Thu, 26 Jan 2017 18:26:40 +0100 Subject: [PATCH] Fixes #4290: Input Offset fix [Horus] (#4293) --- companion/src/firmwares/opentx/opentxeeprom.cpp | 2 +- companion/src/modeledit/expodialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 5f9d5984f..2bb63c0a2 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -1363,7 +1363,7 @@ class InputField: public TransformedField { { _weight = smallGvarToEEPROM(expo.weight); - if (IS_TARANIS(board) && version >= 216) { + if (IS_HORUS_OR_TARANIS(board) && version >= 216) { _offset = smallGvarToEEPROM(expo.offset); } diff --git a/companion/src/modeledit/expodialog.cpp b/companion/src/modeledit/expodialog.cpp index 2b350e4bf..8e90d3754 100644 --- a/companion/src/modeledit/expodialog.cpp +++ b/companion/src/modeledit/expodialog.cpp @@ -40,7 +40,7 @@ ExpoDialog::ExpoDialog(QWidget *parent, ModelData & model, ExpoData *expoData, G setWindowTitle(tr("Edit %1").arg(modelPrinter.printInputName(ed->chn))); QRegExp rx(CHAR_FOR_NAMES_REGEX); - if (IS_TARANIS(getCurrentBoard())) { + if (IS_HORUS_OR_TARANIS(getCurrentBoard())) { gvWeightGroup = new GVarGroup(ui->weightGV, ui->weightSB, ui->weightCB, ed->weight, model, 100, -100, 100); gvOffsetGroup = new GVarGroup(ui->offsetGV, ui->offsetSB, ui->offsetCB, ed->offset, model, 0, -100, 100); }