Skip to content

Commit

Permalink
update RF24 debug toggle option
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 16, 2024
1 parent 8f3edce commit 8e8af75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/using_flags.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ###################### DEBUG (& EXTRA) FLAGS ######################

# ## RF24 core specific options
# option(RF24_DEBUG "enable/disable debugging output for RF24 lib" OFF)
option(RF24_DEBUG "enable/disable debugging output for RF24 lib" OFF)

# ## RF24Network specific options
option(RF24NETWORK_DEBUG "enable/disable debugging output for RF24Network lib" OFF)
Expand Down Expand Up @@ -64,10 +64,10 @@ option(MESH_DEBUG_MINIMAL "enable/disable minimal debugging output for RF24Mesh
# function to apply flags to applicable targets
function(apply_flags target)
# apply RF24 flags to cpp_rf24 target
# if(RF24_DEBUG)
# message(STATUS "RF24_DEBUG asserted for ${target}")
# target_compile_definitions(${target} PUBLIC SERIAL_DEBUG)
# endif()
if(RF24_DEBUG)
message(STATUS "RF24_DEBUG asserted for ${target}")
target_compile_definitions(${target} PUBLIC SERIAL_DEBUG)
endif()

# pass driver used to expose as a constant in rf24 module.
target_compile_definitions(${target} PUBLIC RF24_DRIVER="${RF24_DRIVER}")
Expand Down

0 comments on commit 8e8af75

Please sign in to comment.