USB-VCP no OFF if internal RF module is set to CRSF (#1957)
* Do not list OFF on VCP menu if internal RF module is set to CRSF to allow pass-through flashing. Set USB-VCP automatically to CLI when CRSF mode is selected for internal module and it was previously OFF. Activate CLI when iCRSF is selected. * Companion part Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
@@ -89,7 +89,7 @@ void postRadioSettingsLoad()
|
||||
#if defined(USB_SERIAL)
|
||||
// default VCP to CLI if not configured
|
||||
// to something else as NONE.
|
||||
if (serialGetMode(SP_VCP) == UART_MODE_NONE) {
|
||||
if (isInternalModuleCrossfire() && serialGetMode(SP_VCP) == UART_MODE_NONE) {
|
||||
serialSetMode(SP_VCP, UART_MODE_CLI);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user