Skip to content

Commit

Permalink
add_definition -DUSING_PICOW if board is pico_w (mcknly#13)
Browse files Browse the repository at this point in the history
-libraries now have the definition as well
  • Loading branch information
fatdollar authored Jun 13, 2024
1 parent ea76611 commit dbe4913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/rp2040/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function(hardware_build_extra)
if(PICO_BOARD STREQUAL "pico_w")
# Pass this parameter to the preprocessor if board type is pico_w
# since some HW config needs to change
add_definitions(-DUSING_PICOW)
target_compile_definitions(cli PUBLIC -DUSING_PICOW)
endif()

# disable Pico STDIO - interacting with CLI will be done via RTOS task queue only, no printf
Expand Down

0 comments on commit dbe4913

Please sign in to comment.