Skip to content

Commit

Permalink
Replace deprecated Gap::setAddress with Gap::set_random_static_address
Browse files Browse the repository at this point in the history
  • Loading branch information
hugueskamba committed Jan 29, 2020
1 parent f055550 commit 02c14fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions BlueNrgHCIDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ class HCIDriver : public cordio::CordioHCIDriver

case ACI_READ_CONFIG_DATA_OPCODE:
// note: will send the HCI command to send the random address
cordio::BLE::deviceInstance().getGap().setAddress(
BLEProtocol::AddressType::RANDOM_STATIC,
pMsg
);
set_random_static_address(pMsg);
break;

case HCI_OPCODE_LE_SET_RAND_ADDR:
Expand Down

0 comments on commit 02c14fb

Please sign in to comment.