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

Update blackbox to use new serial port sharing api.

Fix infinite loop in serial port allocation when disarming. (arming with
new serial port code was not tested until now).
This commit is contained in:
Dominic Clifton 2015-02-19 00:03:18 +00:00
parent 7dcc7b2fb5
commit 06a8d0c8cf
2 changed files with 14 additions and 1 deletions

View file

@ -553,6 +553,7 @@ void mspAllocateSerialPorts(serialConfig_t *serialConfig)
while (portConfig && portIndex < MAX_MSP_PORT_COUNT) {
mspPort_t *mspPort = &mspPorts[portIndex];
if (mspPort->mspPortUsage != UNUSED_PORT) {
portIndex++;
continue;
}