Skip to content

Commit 3da0107

Browse files
committed
Replace deprecated BLE APIs
1 parent de798c4 commit 3da0107

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg)
148148

149149
if (get_random_static_address(static_address)) {
150150
// note: will send the HCI command to send the random address
151-
cordio::BLE::deviceInstance().getGap().setAddress(
152-
BLEProtocol::AddressType::RANDOM_STATIC,
153-
static_address.data()
154-
);
151+
cordio::BLE::deviceInstance().getGap().enablePrivacy(true);
155152
} else {
156153
/* send next command in sequence */
157154
HciLeReadBufSizeCmd();

0 commit comments

Comments
 (0)