Fix T12 switches
This commit is contained in:
@@ -303,6 +303,7 @@ void convertRadioData_218_to_219(RadioData & settings)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RADIO_T12)
|
#if defined(RADIO_T12)
|
||||||
|
g_eeGeneral.switchConfig = bfSet<uint32_t>(g_eeGeneral.switchConfig, SWITCH_2POS, 10, 2); // T12 comes with wrongly defined pot2
|
||||||
g_eeGeneral.potsConfig = bfSet<uint32_t>(g_eeGeneral.potsConfig, POT_WITHOUT_DETENT, 2, 2); // T12 comes with wrongly defined pot2
|
g_eeGeneral.potsConfig = bfSet<uint32_t>(g_eeGeneral.potsConfig, POT_WITHOUT_DETENT, 2, 2); // T12 comes with wrongly defined pot2
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -426,12 +426,7 @@
|
|||||||
#define SWITCHES_GPIO_PIN_G_L GPIO_Pin_4 // PF.04
|
#define SWITCHES_GPIO_PIN_G_L GPIO_Pin_4 // PF.04
|
||||||
#elif defined(RADIO_X7) || defined(PCBXLITE) || defined(PCBX9LITE)
|
#elif defined(RADIO_X7) || defined(PCBXLITE) || defined(PCBX9LITE)
|
||||||
// no SWG
|
// no SWG
|
||||||
#elif defined(RADIO_T12)
|
#elif !defined(RADIO_T12)
|
||||||
#define STORAGE_SWITCH_G
|
|
||||||
#define HARDWARE_SWITCH_G
|
|
||||||
#define SWITCHES_GPIO_REG_G GPIOE->IDR
|
|
||||||
#define SWITCHES_GPIO_PIN_G GPIO_Pin_14 // PE.14
|
|
||||||
#else
|
|
||||||
#define STORAGE_SWITCH_G
|
#define STORAGE_SWITCH_G
|
||||||
#define HARDWARE_SWITCH_G
|
#define HARDWARE_SWITCH_G
|
||||||
#define SWITCHES_GPIO_REG_G_H GPIOE->IDR
|
#define SWITCHES_GPIO_REG_G_H GPIOE->IDR
|
||||||
|
|||||||
Reference in New Issue
Block a user