diff --git a/radio/src/targets/common/arm/stm32/CMakeLists.txt b/radio/src/targets/common/arm/stm32/CMakeLists.txt index 93d6f9f256..8b13dacd4a 100644 --- a/radio/src/targets/common/arm/stm32/CMakeLists.txt +++ b/radio/src/targets/common/arm/stm32/CMakeLists.txt @@ -96,6 +96,7 @@ if(DEBUG OR CLI OR USB_SERIAL) #disable USB_SERIAL if it will exceed flash size if ((NOT TRANSLATIONS STREQUAL EN) AND DFPLAYER STREQUAL YES AND USB_MSD STREQUAL YES AND PCBI6X_ELRS STREQUAL YES AND PCBI6X_INAV STREQUAL YES AND USB_SERIAL STREQUAL YES) + message(WARNING "USB_SERIAL will be disabled") remove_definitions(-DUSB_SERIAL) endif() endif()