fix(radio): limit CLI to USB-VCP (#4679)
This commit is contained in:
@@ -442,8 +442,10 @@ bool isSerialModeAvailable(uint8_t port_nr, int mode)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CLI)
|
#if !defined(CLI)
|
||||||
if (mode == UART_MODE_CLI)
|
if (mode == UART_MODE_CLI) return false;
|
||||||
return false;
|
#else
|
||||||
|
// CLI is only supported on VCP
|
||||||
|
if (port_nr != SP_VCP && mode == UART_MODE_CLI) return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(INTERNAL_GPS)
|
#if !defined(INTERNAL_GPS)
|
||||||
|
|||||||
Reference in New Issue
Block a user