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

Fix arm/disarm/arm bug when using shared msp/telemetry ports.

All msp ports are now re-initialised when disarming.

Bug wa introduced by c06fd78b83 - see
#144.

Runtime serial port scenario should not have been erased.

Fixes #144 and #155. Cleanup #125.
This commit is contained in:
Dominic Clifton 2014-11-05 19:39:13 +00:00
parent 2d7184b25b
commit db36cfe12e
6 changed files with 21 additions and 7 deletions

View file

@ -32,10 +32,10 @@
#include "drivers/serial_uart.h"
#include "drivers/serial_usb_vcp.h"
#include "io/serial.h"
#include "serial_cli.h"
#include "serial_msp.h"
#include "io/serial.h"
#include "config/config.h"
uint32_t getTelemetryProviderBaudRate(void);
@ -372,7 +372,6 @@ void endSerialPortFunction(serialPort_t *port, serialPortFunction_e function)
serialPortFunction_t *serialPortFunction = findSerialPortFunctionByPort(port);
serialPortFunction->currentFunction = FUNCTION_NONE;
serialPortFunction->scenario = SCENARIO_UNUSED;
serialPortFunction->port = NULL;
}