mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Issue #813 - S3 skipped when not available
This commit is contained in:
parent
05e2c8bdf3
commit
e3fb62b33e
5 changed files with 28 additions and 2 deletions
|
@ -1473,6 +1473,15 @@ bool isSwitchAvailable(int swtch)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool isThrottleSourceAvailable(int source)
|
||||
{
|
||||
#if defined(PCBTARANIS)
|
||||
if (source == THROTTLE_SOURCE_S3 && !IS_POT_AVAILABLE(POT3))
|
||||
return false;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isLogicalSwitchFunctionAvailable(int function)
|
||||
{
|
||||
return function != LS_FUNC_RANGE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue