mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 05:15:18 +03:00
Small switches refactoring
This commit is contained in:
parent
f106414bd8
commit
2f394d1b6e
1 changed files with 20 additions and 11 deletions
|
@ -680,34 +680,43 @@ enum MixSources {
|
||||||
|
|
||||||
MIXSRC_FIRST_SWITCH,
|
MIXSRC_FIRST_SWITCH,
|
||||||
|
|
||||||
#if defined(PCBHORUS) || defined(PCBTARANIS)
|
#if defined(HARDWARE_SWITCH_A)
|
||||||
MIXSRC_SA = MIXSRC_FIRST_SWITCH, LUA_EXPORT("sa", "Switch A")
|
MIXSRC_SA = MIXSRC_FIRST_SWITCH, LUA_EXPORT("sa", "Switch A")
|
||||||
MIXSRC_SB, LUA_EXPORT("sb", "Switch B")
|
MIXSRC_SB, LUA_EXPORT("sb", "Switch B")
|
||||||
MIXSRC_SC, LUA_EXPORT("sc", "Switch C")
|
MIXSRC_SC, LUA_EXPORT("sc", "Switch C")
|
||||||
MIXSRC_SD, LUA_EXPORT("sd", "Switch D")
|
MIXSRC_SD, LUA_EXPORT("sd", "Switch D")
|
||||||
#endif
|
#endif
|
||||||
#if defined(PCBHORUS) || defined(PCBX9) || defined(PCBXLITES)
|
#if defined(HARDWARE_SWITCH_E)
|
||||||
MIXSRC_SE, LUA_EXPORT("se", "Switch E")
|
MIXSRC_SE, LUA_EXPORT("se", "Switch E")
|
||||||
|
#elif defined(STORAGE_SWITCH_E)
|
||||||
|
MIXSRC_SE,
|
||||||
#endif
|
#endif
|
||||||
#if defined(PCBHORUS) || defined(PCBX9D) || defined(PCBX9DP) || defined(PCBX9E) || defined(PCBX7) || defined(PCBXLITES)
|
#if defined(HARDWARE_SWITCH_F)
|
||||||
MIXSRC_SF, LUA_EXPORT("sf", "Switch F")
|
MIXSRC_SF, LUA_EXPORT("sf", "Switch F")
|
||||||
|
#elif defined(STORAGE_SWITCH_F)
|
||||||
|
MIXSRC_SF,
|
||||||
#endif
|
#endif
|
||||||
#if defined(PCBHORUS) || defined(PCBX9D) || defined(PCBX9DP) || defined(PCBX9E)
|
#if defined(HARDWARE_SWITCH_G)
|
||||||
MIXSRC_SG, LUA_EXPORT("sg", "Switch G")
|
MIXSRC_SG, LUA_EXPORT("sg", "Switch G")
|
||||||
|
#elif defined(STORAGE_SWITCH_G)
|
||||||
|
MIXSRC_SG,
|
||||||
#endif
|
#endif
|
||||||
#if defined(PCBHORUS) || defined(PCBX9D) || defined(PCBX9DP) || defined(PCBX9E) || defined(PCBX7)
|
#if defined(HARDWARE_SWITCH_H)
|
||||||
MIXSRC_SH, LUA_EXPORT("sh", "Switch H")
|
MIXSRC_SH, LUA_EXPORT("sh", "Switch H")
|
||||||
|
#elif defined(STORAGE_SWITCH_H)
|
||||||
|
MIXSRC_SH,
|
||||||
#endif
|
#endif
|
||||||
#if defined(RADIO_X7)
|
#if defined(HARDWARE_SWITCH_I)
|
||||||
MIXSRC_SI, LUA_EXPORT("si", "Switch I")
|
MIXSRC_SI, LUA_EXPORT("si", "Switch I")
|
||||||
MIXSRC_SJ, LUA_EXPORT("sj", "Switch J")
|
#elif defined(STORAGE_SWITCH_I)
|
||||||
#elif defined(RADIO_T12) // keep switches for eeprom compatibity, but hide them
|
|
||||||
MIXSRC_SI,
|
MIXSRC_SI,
|
||||||
|
#endif
|
||||||
|
#if defined(HARDWARE_SWITCH_J)
|
||||||
|
MIXSRC_SJ, LUA_EXPORT("sj", "Switch J")
|
||||||
|
#elif defined(STORAGE_SWITCH_J)
|
||||||
MIXSRC_SJ,
|
MIXSRC_SJ,
|
||||||
#endif
|
#endif
|
||||||
#if defined(PCBX9E)
|
#if defined(HARDWARE_SWITCH_K)
|
||||||
MIXSRC_SI, LUA_EXPORT("si", "Switch I")
|
|
||||||
MIXSRC_SJ, LUA_EXPORT("sj", "Switch J")
|
|
||||||
MIXSRC_SK, LUA_EXPORT("sk", "Switch K")
|
MIXSRC_SK, LUA_EXPORT("sk", "Switch K")
|
||||||
MIXSRC_SL, LUA_EXPORT("sl", "Switch L")
|
MIXSRC_SL, LUA_EXPORT("sl", "Switch L")
|
||||||
MIXSRC_SM, LUA_EXPORT("sm", "Switch M")
|
MIXSRC_SM, LUA_EXPORT("sm", "Switch M")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue