X7 hardware defaults changed to match production hardware

This commit is contained in:
Andre Bernet
2017-01-21 12:21:57 +01:00
parent 3085ba7d91
commit 0ee59dc438
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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;
+2
View File
@@ -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