mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Eliminated inefficient serial function calls at runtime.
This commit is contained in:
parent
3af1610d0b
commit
032f3b501b
5 changed files with 14 additions and 23 deletions
|
@ -72,7 +72,7 @@ static bool rcdeviceIsCameraControlEnabled(void)
|
|||
|
||||
bool rcdeviceIsEnabled(void)
|
||||
{
|
||||
return findSerialPortConfig(FUNCTION_RCDEVICE) != NULL;
|
||||
return camDevice->serialPort != NULL;
|
||||
}
|
||||
|
||||
static bool rcdeviceIs5KeyEnabled(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue