fix(radio): limit CLI to USB-VCP (#4679)

This commit is contained in:
Peter Feerick
2024-02-27 11:36:54 +10:00
committed by GitHub
parent b3c09dd35a
commit 3807d7759b
+4 -2
View File
@@ -442,8 +442,10 @@ bool isSerialModeAvailable(uint8_t port_nr, int mode)
#endif
#if !defined(CLI)
if (mode == UART_MODE_CLI)
return false;
if (mode == UART_MODE_CLI) return false;
#else
// CLI is only supported on VCP
if (port_nr != SP_VCP && mode == UART_MODE_CLI) return false;
#endif
#if !defined(INTERNAL_GPS)