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:
parent
7dcc7b2fb5
commit
06a8d0c8cf
2 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue