Skip to content

Commit 21788ea

Browse files
mmorenobarmadbridge
authored andcommitted
Update BLE Cordio libraries
This patch updates the BLE Cordio libraries. Signed-off-by: Marc Moreno <[email protected]>
1 parent 600f049 commit 21788ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1932
-1297
lines changed

features/FEATURE_BLE/targets/TARGET_ARM_SSG/TARGET_BEETLE/source/ArmGap.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,13 @@ ble_error_t ArmGap::startAdvertising(const GapAdvertisingParams &params)
7777
return BLE_ERROR_PARAM_OUT_OF_RANGE;
7878
}
7979

80+
/* Peer Addr Type 0 = Public */
81+
uint8_t peerAddrType = 0;
82+
uint8_t peerAddr[6];
83+
memset(peerAddr, 0, 6);
84+
8085
DmAdvSetInterval(params.getInterval(), params.getInterval());
81-
DmAdvStart(params.getAdvertisingType(), params.getTimeout());
86+
DmAdvStart(params.getAdvertisingType(), params.getTimeout(), peerAddrType, peerAddr);
8287

8388
state.advertising = 1;
8489

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)