Merge pull request #7953 from etracer65/require_msp_on_vcp_port
Change serial port config validation to require MSP on VCP port
This commit is contained in:
commit
3cc7165cc5
|
@ -275,6 +275,9 @@ bool isSerialConfigValid(const serialConfig_t *serialConfigToCheck)
|
|||
|
||||
if (portConfig->functionMask & FUNCTION_MSP) {
|
||||
mspPortCount++;
|
||||
} else if (portConfig->identifier == SERIAL_PORT_USB_VCP) {
|
||||
// Require MSP to be enabled for the VCP port
|
||||
return false;
|
||||
}
|
||||
|
||||
uint8_t bitCount = BITCOUNT(portConfig->functionMask);
|
||||
|
|
Loading…
Reference in New Issue