Skip to content

Commit

Permalink
Merge pull request #2421 from fanoush/f-fix-sdk15-central-count-default
Browse files Browse the repository at this point in the history
fix CENTRAL_LINK_COUNT default for SDK15
  • Loading branch information
gfwilliams authored Oct 30, 2023
2 parents 62acf92 + 6abef83 commit 9b626d6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions targets/nrf5x/app_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
// Do not include these for NRF51
#define BLE_HIDS_ENABLED 1
#define PEER_MANAGER_ENABLED 1
#else
#ifndef CENTRAL_LINK_COUNT
#define CENTRAL_LINK_COUNT 0
#endif
#endif // NRF51_SERIES

#define BLE_ADVERTISING_ENABLED 1
Expand Down Expand Up @@ -173,16 +177,11 @@
// For SDK 15.3.0
#define FDS_VIRTUAL_PAGES_RESERVED 0


#ifndef PERIPHERAL_LINK_COUNT
#define PERIPHERAL_LINK_COUNT 1
#endif
#ifndef CENTRAL_LINK_COUNT
#if PEER_MANAGER_ENABLED // if no peer manager, no central
#define CENTRAL_LINK_COUNT 1
#else
#define CENTRAL_LINK_COUNT 0
#endif
#endif
// SDK15+ (fixes BLE UART send when CENTRAL_LINK_COUNT>1)
#define NRF_SDH_BLE_TOTAL_LINK_COUNT (CENTRAL_LINK_COUNT + PERIPHERAL_LINK_COUNT)
Expand Down

0 comments on commit 9b626d6

Please sign in to comment.