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
@@ -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