Make USB serial dependent on USB_SERIAL rather than DEBUG
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ void openUsbMenu()
|
||||
if (popupMenuHandler != onUSBConnectMenu) {
|
||||
POPUP_MENU_ADD_ITEM(STR_USB_JOYSTICK);
|
||||
POPUP_MENU_ADD_ITEM(STR_USB_MASS_STORAGE);
|
||||
#if defined(DEBUG)
|
||||
#if defined(USB_SERIAL)
|
||||
POPUP_MENU_ADD_ITEM(STR_USB_SERIAL);
|
||||
#endif
|
||||
POPUP_MENU_TITLE(STR_SELECT_MODE);
|
||||
|
||||
@@ -50,6 +50,7 @@ if(DEBUG OR CLI OR USB_SERIAL)
|
||||
../common/arm/stm32/usbd_cdc.cpp
|
||||
)
|
||||
add_definitions(-DUSB_SERIAL)
|
||||
message("-- Adding support for USB serial")
|
||||
endif()
|
||||
|
||||
set(STM32USB_SRC
|
||||
|
||||
Reference in New Issue
Block a user