From e3955159a295e7ef8eccf0f7e3692fcb5e36350a Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Wed, 23 Apr 2014 15:03:17 +0200 Subject: [PATCH] Enable haptic fields for Taranis, add option for revisions < REVPLUS --- companion/src/firmwares/opentx/opentxinterface.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxinterface.cpp b/companion/src/firmwares/opentx/opentxinterface.cpp index c0dca9f26..275741c07 100644 --- a/companion/src/firmwares/opentx/opentxinterface.cpp +++ b/companion/src/firmwares/opentx/opentxinterface.cpp @@ -562,10 +562,7 @@ int OpenTxFirmware::getCapability(const Capability capability) case SoundPitch: return 1; case Haptic: - if (IS_TARANIS(board)) - return 0; - else - return 1; + return 1; case ModelTrainerEnable: if (IS_TARANIS(board)) return 1; @@ -576,10 +573,7 @@ int OpenTxFirmware::getCapability(const Capability capability) return 1; case HapticLength: case HapticMode: - if (IS_TARANIS(board)) - return 0; - else - return 1; + return 1; case Beeperlen: return 1; case MaxVolume: @@ -1226,6 +1220,7 @@ void registerOpenTxFirmwares() openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support")); openTx->addOption("notemplates", QObject::tr("Disable TEMPLATES menu")); openTx->addOption("nogvars", QObject::tr("Disable Global variables")); + openTx->addOption("haptic", QObject::tr("Haptic module installed")); openTx->addOption("ppmus", QObject::tr("Channel values displayed in us")); openTx->addOption("sqt5font", QObject::tr("Use alternative SQT5 font")); openTx->addOptions(fai_options); @@ -1246,6 +1241,7 @@ void registerOpenTxFirmwares() openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support")); openTx->addOption("notemplates", QObject::tr("Disable TEMPLATES menu")); openTx->addOption("nogvars", QObject::tr("Disable Global variables")); + openTx->addOption("haptic", QObject::tr("Haptic module installed")); openTx->addOption("ppmus", QObject::tr("Channel values displayed in us")); openTx->addOption("sqt5font", QObject::tr("Use alternative SQT5 font")); openTx->addOptions(fai_options);