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

Fix MSP/Telemetry Arm/Disarm problems.

Tested with two MSP ports, one via softserial. Both with telemetry
enabled and without telemetry enabled.
This commit is contained in:
Dominic Clifton 2014-11-08 11:53:01 +00:00
parent f42d603b12
commit 28da97f894
3 changed files with 17 additions and 18 deletions

View file

@ -303,7 +303,7 @@ void mwDisarm(void)
// the telemetry state must be checked immediately so that shared serial ports are released.
checkTelemetryState();
if (isSerialPortFunctionShared(FUNCTION_TELEMETRY, FUNCTION_MSP)) {
mspReset(&masterConfig.serialConfig);
mspAllocateSerialPorts(&masterConfig.serialConfig);
}
}
#endif