Make USB serial dependent on USB_SERIAL rather than DEBUG

This commit is contained in:
Raphael Coeffic
2021-12-17 15:17:49 +01:00
parent 8db2f2e185
commit f93cac3b1d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ void openUsbMenu()
if (popupMenuHandler != onUSBConnectMenu) { if (popupMenuHandler != onUSBConnectMenu) {
POPUP_MENU_ADD_ITEM(STR_USB_JOYSTICK); POPUP_MENU_ADD_ITEM(STR_USB_JOYSTICK);
POPUP_MENU_ADD_ITEM(STR_USB_MASS_STORAGE); POPUP_MENU_ADD_ITEM(STR_USB_MASS_STORAGE);
#if defined(DEBUG) #if defined(USB_SERIAL)
POPUP_MENU_ADD_ITEM(STR_USB_SERIAL); POPUP_MENU_ADD_ITEM(STR_USB_SERIAL);
#endif #endif
POPUP_MENU_TITLE(STR_SELECT_MODE); POPUP_MENU_TITLE(STR_SELECT_MODE);
@@ -50,6 +50,7 @@ if(DEBUG OR CLI OR USB_SERIAL)
../common/arm/stm32/usbd_cdc.cpp ../common/arm/stm32/usbd_cdc.cpp
) )
add_definitions(-DUSB_SERIAL) add_definitions(-DUSB_SERIAL)
message("-- Adding support for USB serial")
endif() endif()
set(STM32USB_SRC set(STM32USB_SRC