Skip to content

Commit

Permalink
Fix lack of LORAMAC_ prefix when passing region options
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeehan1968 committed Oct 15, 2022
1 parent 0a6d732 commit 876d678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions as-lib/mac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (NOT TARGET ${PROJECT_NAME})
${LORAMAC_SOURCE_DIR}/mac/secure-element-nvm.h
${LORAMAC_SOURCE_DIR}/mac/region/Region.h
${LORAMAC_SOURCE_DIR}/mac/region/RegionCommon.h
$<$<OR:$<BOOL:REGION_AU915>,$<BOOL:REGION_US915>>:${LORAMAC_SOURCE_DIR}/mac/region/RegionBaseUS.h>
$<$<OR:$<BOOL:LORAMAC_REGION_AU915>,$<BOOL:LORAMAC_REGION_US915>>:${LORAMAC_SOURCE_DIR}/mac/region/RegionBaseUS.h>

PRIVATE
${LORAMAC_SOURCE_DIR}/mac/LoRaMac.c
Expand Down Expand Up @@ -68,7 +68,7 @@ if (NOT TARGET ${PROJECT_NAME})
target_compile_definitions(
${PROJECT_NAME}
PUBLIC
$<$<BOOL:${REGION_${REGION}}>:REGION_${REGION}>
$<$<BOOL:${LORAMAC_REGION_${REGION}}>:REGION_${REGION}>
)

endif()
Expand Down

0 comments on commit 876d678

Please sign in to comment.