fix(radio): '---' option is missing when selecting some source values.(#5913)
This commit is contained in:
@@ -311,7 +311,7 @@ bool checkSourceAvailable(int source, uint32_t sourceTypes)
|
|||||||
bool isSourceAvailable(int source)
|
bool isSourceAvailable(int source)
|
||||||
{
|
{
|
||||||
return checkSourceAvailable(source,
|
return checkSourceAvailable(source,
|
||||||
SRC_COMMON | SRC_INPUT | SRC_LUA | SRC_HELI | SRC_CHANNEL | SRC_TX | SRC_TIMER | SRC_TELEM
|
SRC_COMMON | SRC_INPUT | SRC_LUA | SRC_HELI | SRC_CHANNEL | SRC_TX | SRC_TIMER | SRC_TELEM | SRC_NONE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,7 +319,7 @@ bool isSourceAvailable(int source)
|
|||||||
bool isSourceAvailableInGlobalFunctions(int source)
|
bool isSourceAvailableInGlobalFunctions(int source)
|
||||||
{
|
{
|
||||||
return checkSourceAvailable(source,
|
return checkSourceAvailable(source,
|
||||||
SRC_COMMON | SRC_INPUT | SRC_LUA | SRC_HELI | SRC_CHANNEL | SRC_TX | SRC_TIMER
|
SRC_COMMON | SRC_INPUT | SRC_LUA | SRC_HELI | SRC_CHANNEL | SRC_TX | SRC_TIMER | SRC_NONE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,7 +328,7 @@ bool isSourceAvailableInGlobalFunctions(int source)
|
|||||||
bool isSourceAvailableInCustomSwitches(int source)
|
bool isSourceAvailableInCustomSwitches(int source)
|
||||||
{
|
{
|
||||||
return checkSourceAvailable(source,
|
return checkSourceAvailable(source,
|
||||||
SRC_COMMON | SRC_INPUT | SRC_LUA | SRC_HELI | SRC_CHANNEL | SRC_TX | SRC_TIMER | SRC_TELEM_COMP
|
SRC_COMMON | SRC_INPUT | SRC_LUA | SRC_HELI | SRC_CHANNEL | SRC_TX | SRC_TIMER | SRC_TELEM_COMP | SRC_NONE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user