1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Cleaned up implementation of MSP port releasing when shared.

This commit is contained in:
mikeller 2018-05-07 23:33:23 +12:00
parent 7b831f94ee
commit 0cd8c62568
6 changed files with 15 additions and 14 deletions

View file

@ -778,7 +778,7 @@ bool processRx(timeUs_t currentTimeUs)
if ((!telemetryConfig()->telemetry_switch && ARMING_FLAG(ARMED)) ||
(telemetryConfig()->telemetry_switch && IS_RC_MODE_ACTIVE(BOXTELEMETRY))) {
releaseSharedTelemetryPorts();
mspSerialReleaseSharedTelemetryPorts();
} else {
// the telemetry state must be checked immediately so that shared serial ports are released.
telemetryCheckState();