Skip to content

Commit

Permalink
Fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Feb 1, 2025
1 parent a6c4524 commit e6f3d89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions radio/src/targets/pl18/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ endif()

if(USE_VS1053B)
target_sources(board PRIVATE targets/common/arm/stm32/vs1053b.cpp)
add_definitions(-DUSE_VS1053B)
else()
target_sources(board PRIVATE targets/common/arm/stm32/audio_dac_driver.cpp)
add_definitions(-DSOFTWARE_VOLUME)
Expand Down
8 changes: 4 additions & 4 deletions radio/src/targets/pl18/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#include "stm32_ws2812.h"
#include "stm32_spi.h"

#if defined(USE_VS1053B)
#include "vs1053b.h"
#endif

#include "hal/adc_driver.h"
#include "hal/trainer_driver.h"
#include "hal/switch_driver.h"
Expand All @@ -42,10 +46,6 @@
#include "touch.h"
#include "debug.h"

#if defined(AUDIO_SPI)
#include "vs1053b.h"
#endif

#if defined(FLYSKY_GIMBAL)
#include "flysky_gimbal_driver.h"
#endif
Expand Down

0 comments on commit e6f3d89

Please sign in to comment.