From 17d3cc2801f2ad726ea4378686074b5052776ffa Mon Sep 17 00:00:00 2001 From: janek Date: Sun, 8 Dec 2024 17:45:48 +0100 Subject: [PATCH] add warning --- radio/src/targets/common/arm/stm32/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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()