mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-18 05:45:17 +03:00
3djc/2.4 add 2.3 pr (#8099)
This commit is contained in:
parent
87cd9047b1
commit
24f93a7cbe
94 changed files with 22779 additions and 205 deletions
|
@ -262,6 +262,8 @@ void onHardwareAntennaSwitchConfirm(const char * result)
|
|||
#define SWITCH_TYPE_MAX(sw) (SWITCH_3POS)
|
||||
#elif defined(PCBX9E)
|
||||
#define SWITCH_TYPE_MAX(sw) ((MIXSRC_SF - MIXSRC_FIRST_SWITCH == sw || MIXSRC_SH - MIXSRC_FIRST_SWITCH == sw) ? SWITCH_2POS : SWITCH_3POS)
|
||||
#elif defined(RADIO_TX12)
|
||||
#define SWITCH_TYPE_MAX(sw) ((MIXSRC_SA - MIXSRC_FIRST_SWITCH == sw || MIXSRC_SD - MIXSRC_FIRST_SWITCH == sw) ? SWITCH_2POS : SWITCH_3POS)
|
||||
#else
|
||||
#define SWITCH_TYPE_MAX(sw) ((MIXSRC_SF - MIXSRC_FIRST_SWITCH == sw || MIXSRC_SH - MIXSRC_FIRST_SWITCH <= sw) ? SWITCH_2POS : SWITCH_3POS)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue