Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Dec 8, 2024
1 parent 9660f70 commit 17d3cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radio/src/targets/common/arm/stm32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 17d3cc2

Please sign in to comment.