Introduce T-pro and function switches handling
This commit is contained in:
@@ -63,6 +63,7 @@ namespace Board {
|
||||
BOARD_JUMPER_TLITE,
|
||||
BOARD_FLYSKY_NV14,
|
||||
BOARD_RADIOMASTER_ZORRO,
|
||||
BOARD_JUMPER_TPRO,
|
||||
BOARD_TYPE_COUNT,
|
||||
BOARD_TYPE_MAX = BOARD_TYPE_COUNT - 1
|
||||
};
|
||||
@@ -143,7 +144,8 @@ namespace Board {
|
||||
NumTrims,
|
||||
NumTrimSwitches,
|
||||
HasRTC,
|
||||
HasColorLcd
|
||||
HasColorLcd,
|
||||
NumFunctionSwitches
|
||||
};
|
||||
|
||||
struct SwitchInfo
|
||||
@@ -237,6 +239,11 @@ inline bool IS_JUMPER_TLITE(Board::Type board)
|
||||
return board == Board::BOARD_JUMPER_TLITE;
|
||||
}
|
||||
|
||||
inline bool IS_JUMPER_TPRO(Board::Type board)
|
||||
{
|
||||
return board == Board::BOARD_JUMPER_TPRO;
|
||||
}
|
||||
|
||||
inline bool IS_JUMPER_T16(Board::Type board)
|
||||
{
|
||||
return board == Board::BOARD_JUMPER_T16;
|
||||
@@ -335,7 +342,7 @@ inline bool IS_TARANIS_X9E(Board::Type board)
|
||||
|
||||
inline bool IS_TARANIS_SMALL(Board::Type board)
|
||||
{
|
||||
return IS_TARANIS_X7(board) || IS_TARANIS_XLITE(board) || IS_TARANIS_X9LITE(board) || IS_FAMILY_T12(board);
|
||||
return IS_TARANIS_X7(board) || IS_TARANIS_XLITE(board) || IS_TARANIS_X9LITE(board) || IS_FAMILY_T12(board) || IS_JUMPER_TPRO(board);
|
||||
}
|
||||
|
||||
inline bool IS_TARANIS(Board::Type board)
|
||||
|
||||
Reference in New Issue
Block a user