Skip to content

Commit

Permalink
update RF24Mesh debug toggle options
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 16, 2024
1 parent e2969f8 commit 388f86a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmake/using_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ option(DISABLE_DYNAMIC_PAYLOADS "force usage of static payload size for RF24Netw

# ## RF24Mesh specific options
option(MESH_NOMASTER "exclude compiling code that is strictly for master nodes for RF24Mesh lib" OFF)
option(MESH_DEBUG "enable/disable debugging output for RF24Mesh lib" OFF)
option(MESH_DEBUG_MINIMAL "enable/disable minimal debugging output for RF24Mesh lib" OFF)
option(RF24MESH_DEBUG "enable/disable debugging output for RF24Mesh lib" OFF)
option(RF24MESH_DEBUG_MINIMAL "enable/disable minimal debugging output for RF24Mesh lib" OFF)

# ### options with default values:

Expand Down Expand Up @@ -122,14 +122,14 @@ function(apply_flags target)
target_compile_definitions(${target} PUBLIC MESH_NOMASTER)
endif()

if(MESH_DEBUG)
message(STATUS "MESH_DEBUG asserted for ${target}")
target_compile_definitions(${target} PUBLIC MESH_DEBUG)
if(RF24MESH_DEBUG)
message(STATUS "RF24MESH_DEBUG asserted for ${target}")
target_compile_definitions(${target} PUBLIC RF24MESH_DEBUG)
endif()

if(MESH_DEBUG_MINIMAL)
message(STATUS "MESH_DEBUG_MINIMAL asserted for ${target}")
target_compile_definitions(${target} PUBLIC MESH_DEBUG_MINIMAL)
if(RF24MESH_DEBUG_MINIMAL)
message(STATUS "RF24MESH_DEBUG_MINIMAL asserted for ${target}")
target_compile_definitions(${target} PUBLIC RF24MESH_DEBUG_MINIMAL)
endif()

# for the following, we let the default be configured in source code
Expand Down

0 comments on commit 388f86a

Please sign in to comment.