Skip to content

Commit

Permalink
Enable USB Serial for EN on DFPlayer build
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Dec 8, 2024
1 parent 559b2af commit 9660f70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions radio/src/targets/common/arm/stm32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ if(DEBUG OR CLI OR USB_SERIAL)
../common/arm/stm32/usbd_cdc.cpp
)
add_definitions(-DUSB_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)
remove_definitions(-DUSB_SERIAL)
endif()
endif()
set(STM32USB_SRC
${STM32USB_SRC}
Expand Down
2 changes: 1 addition & 1 deletion tools/build-flysky.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"PCBI6X_ELRS": "YES",
"PCBI6X_INAV": "YES",
"DFPLAYER": "YES",
"USB_SERIAL": "NO",
"USB_SERIAL": "YES",
},
"I6X_HELI": {
"HELI": "YES",
Expand Down

0 comments on commit 9660f70

Please sign in to comment.