Fix release of MSP port when MSP and MSP telemetry are used on the same

port.
This commit is contained in:
Dominic Clifton 2015-03-05 11:04:25 +00:00
parent d4dd1f6a58
commit d51a2fbd88
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ void handleMSPTelemetry(void)
void freeMSPTelemetryPort(void)
{
mspReleasePortIfAllocated(mspTelemetryPort);
closeSerialPort(mspTelemetryPort);
mspTelemetryPort = NULL;
mspTelemetryEnabled = false;