1
0
Fork 0
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:
mikeller 2018-05-10 01:32:36 +12:00
parent 3af1610d0b
commit 032f3b501b
5 changed files with 14 additions and 23 deletions

View file

@ -72,7 +72,7 @@ static bool rcdeviceIsCameraControlEnabled(void)
bool rcdeviceIsEnabled(void)
{
return findSerialPortConfig(FUNCTION_RCDEVICE) != NULL;
return camDevice->serialPort != NULL;
}
static bool rcdeviceIs5KeyEnabled(void)