1
0
Fork 0
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:
Michael Keller 2020-10-04 23:54:33 +13:00 committed by GitHub
commit c17e935269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }