Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CENTRAL_LINK_COUNT default for SDK15 #2421

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading