mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Allow smartport to be configured. Fix shared port flag calculation.
This commit is contained in:
parent
0f8d231aad
commit
668c9c0457
4 changed files with 31 additions and 26 deletions
|
@ -97,7 +97,11 @@ bool canUseTelemetryWithCurrentConfiguration(void)
|
|||
|
||||
void initTelemetry()
|
||||
{
|
||||
telemetryPortIsShared = isSerialPortFunctionShared(FUNCTION_TELEMETRY, FUNCTION_MSP) | isSerialPortFunctionShared(FUNCTION_SMARTPORT_TELEMETRY, FUNCTION_MSP);
|
||||
if (isTelemetryProviderSmartPort()) {
|
||||
telemetryPortIsShared = isSerialPortFunctionShared(FUNCTION_SMARTPORT_TELEMETRY, FUNCTION_MSP);
|
||||
} else {
|
||||
telemetryPortIsShared = isSerialPortFunctionShared(FUNCTION_TELEMETRY, FUNCTION_MSP);
|
||||
}
|
||||
isTelemetryConfigurationValid = canUseTelemetryWithCurrentConfiguration();
|
||||
|
||||
if (isTelemetryProviderFrSky()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue