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:
parent
7b831f94ee
commit
0cd8c62568
6 changed files with 15 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue