From 0ee59dc4387b90c961f1356726b95ff1f80f0190 Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Sat, 21 Jan 2017 12:21:57 +0100 Subject: [PATCH] X7 hardware defaults changed to match production hardware --- companion/src/eeprominterface.cpp | 4 ++++ radio/src/opentx.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/companion/src/eeprominterface.cpp b/companion/src/eeprominterface.cpp index 33f51853c..1200c65a8 100644 --- a/companion/src/eeprominterface.cpp +++ b/companion/src/eeprominterface.cpp @@ -1105,6 +1105,10 @@ GeneralSettings::GeneralSettings() potConfig[1] = POT_MULTIPOS_SWITCH; potConfig[2] = POT_WITH_DETENT; } + else if (IS_TARANIS_X7(board)) { + potConfig[0] = POT_WITHOUT_DETENT; + potConfig[1] = POT_WITH_DETENT; + } else if (IS_TARANIS(board)) { potConfig[0] = POT_WITH_DETENT; potConfig[1] = POT_WITH_DETENT; diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 6390b6780..e25578033 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -246,6 +246,8 @@ void generalDefault() #endif g_eeGeneral.slidersConfig = 0x0f; // 4 sliders g_eeGeneral.blOffBright = 20; +#elif defined(PCBX7) + g_eeGeneral.potsConfig = 0x07; // S1 = pot without detent, S2 = pot with detent #elif defined(PCBTARANIS) g_eeGeneral.potsConfig = 0x05; // S1 and S2 = pots with detent g_eeGeneral.slidersConfig = 0x03; // LS and RS = sliders with detent