diff --git a/src/main/msp/msp_serial.c b/src/main/msp/msp_serial.c index 935b6fe866..64f13f00b9 100644 --- a/src/main/msp/msp_serial.c +++ b/src/main/msp/msp_serial.c @@ -562,7 +562,11 @@ int mspSerialPush(serialPortIdentifier_e port, uint8_t cmd, uint8_t *data, int d mspPort_t * const mspPort = &mspPorts[portIndex]; // 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; }