mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Fixes #7036
This commit is contained in:
parent
d0579f26a6
commit
9b05060a1a
6 changed files with 7 additions and 12 deletions
|
@ -240,22 +240,17 @@ bool isSourceAvailableInCustomSwitches(int source)
|
|||
return result;
|
||||
}
|
||||
|
||||
bool isInputSourceAvailable(int source)
|
||||
bool isSourceAvailableInInputs(int source)
|
||||
{
|
||||
if (source >= MIXSRC_FIRST_POT && source <= MIXSRC_LAST_POT)
|
||||
return IS_POT_SLIDER_AVAILABLE(POT1+source - MIXSRC_FIRST_POT);
|
||||
|
||||
#if defined(GYRO)
|
||||
if (source >= MIXSRC_GYRO1 && source <= MIXSRC_GYRO2)
|
||||
return true;
|
||||
#endif
|
||||
|
||||
#if defined(PCBX10)
|
||||
if (source >= MIXSRC_MOUSE1 && source <= MIXSRC_MOUSE2)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
if (source >= MIXSRC_Rud && source < MIXSRC_MAX)
|
||||
if (source >= MIXSRC_Rud && source <= MIXSRC_MAX)
|
||||
return true;
|
||||
|
||||
if (source >= MIXSRC_FIRST_TRIM && source <= MIXSRC_LAST_TRIM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue