mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #10230 from etracer65/msp_displayport_vcp_support
Add compile-time option to enable MSP push messages over the VCP port
This commit is contained in:
commit
c17e935269
1 changed files with 5 additions and 1 deletions
|
@ -562,7 +562,11 @@ int mspSerialPush(serialPortIdentifier_e port, uint8_t cmd, uint8_t *data, int d
|
||||||
mspPort_t * const mspPort = &mspPorts[portIndex];
|
mspPort_t * const mspPort = &mspPorts[portIndex];
|
||||||
|
|
||||||
// XXX Kludge!!! Avoid zombie VCP port (avoid VCP entirely for now)
|
// XXX Kludge!!! Avoid zombie VCP port (avoid VCP entirely for now)
|
||||||
if (!mspPort->port || mspPort->port->identifier == SERIAL_PORT_USB_VCP || (port != SERIAL_PORT_NONE && mspPort->port->identifier != port)) {
|
if (!mspPort->port
|
||||||
|
#ifndef USE_MSP_PUSH_OVER_VCP
|
||||||
|
|| mspPort->port->identifier == SERIAL_PORT_USB_VCP
|
||||||
|
#endif
|
||||||
|
|| (port != SERIAL_PORT_NONE && mspPort->port->identifier != port)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue