mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
parent
94ba22a74d
commit
0eb203e827
9 changed files with 96 additions and 19 deletions
|
@ -385,6 +385,24 @@ bool isSwitchAvailable(int swtch, SwitchContext context)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool isAux1ModeAvailable(int mode)
|
||||
{
|
||||
#if defined(AUX2_SERIAL)
|
||||
if (mode == UART_MODE_SBUS_TRAINER)
|
||||
return g_eeGeneral.aux2SerialMode != UART_MODE_SBUS_TRAINER;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isAux2ModeAvailable(int mode)
|
||||
{
|
||||
#if defined(AUX_SERIAL)
|
||||
if (mode == UART_MODE_SBUS_TRAINER)
|
||||
return g_eeGeneral.auxSerialMode != UART_MODE_SBUS_TRAINER;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isSwitchAvailableInLogicalSwitches(int swtch)
|
||||
{
|
||||
return isSwitchAvailable(swtch, LogicalSwitchesContext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue