mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Avoid zombie VCP
This commit is contained in:
parent
1aaf2d9d47
commit
a5c14eed9a
1 changed files with 5 additions and 0 deletions
|
@ -229,6 +229,11 @@ void mspSerialPush(uint8_t cmd, uint8_t *data, int datalen)
|
|||
continue;
|
||||
}
|
||||
|
||||
// XXX Avoid zombie VCP port
|
||||
if (mspPort->port->identifier == SERIAL_PORT_USB_VCP) {
|
||||
continue;
|
||||
}
|
||||
|
||||
mspPushCommandFn(&push, data, datalen);
|
||||
|
||||
sbufSwitchToReader(&push.buf, pushBuf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue