Skip to content

Commit a7a53b7

Browse files
authored
Merge pull request #3046 from mmorenobarm/master
[BEETLE] Update BLE stack on Beetle board
2 parents 53cd23e + e7829cd commit a7a53b7

Some content is hidden

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

65 files changed

+1974
-1314
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.
Binary file not shown.

0 commit comments

Comments
 (0)