replaced more uses of Gap::address_t with Gap::Address_t
This commit is contained in:
parent
de85a0c01a
commit
46cf18e842
2 changed files with 4 additions and 4 deletions
|
@ -369,7 +369,7 @@ uint16_t nRF51Gap::getConnectionHandle(void)
|
|||
@endcode
|
||||
*/
|
||||
/**************************************************************************/
|
||||
ble_error_t nRF51Gap::setAddress(AddressType_t type, const address_t address)
|
||||
ble_error_t nRF51Gap::setAddress(AddressType_t type, const Address_t address)
|
||||
{
|
||||
if (type > ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE) {
|
||||
return BLE_ERROR_PARAM_OUT_OF_RANGE;
|
||||
|
@ -384,7 +384,7 @@ ble_error_t nRF51Gap::setAddress(AddressType_t type, const address_t address)
|
|||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
ble_error_t nRF51Gap::getAddress(AddressType_t *typeP, address_t address)
|
||||
ble_error_t nRF51Gap::getAddress(AddressType_t *typeP, Address_t address)
|
||||
{
|
||||
ble_gap_addr_t dev_addr;
|
||||
if (sd_ble_gap_address_get(&dev_addr) != NRF_SUCCESS) {
|
||||
|
|
|
@ -41,8 +41,8 @@ public:
|
|||
static nRF51Gap &getInstance();
|
||||
|
||||
/* Functions that must be implemented from Gap */
|
||||
virtual ble_error_t setAddress(AddressType_t type, const address_t address);
|
||||
virtual ble_error_t getAddress(AddressType_t *typeP, address_t address);
|
||||
virtual ble_error_t setAddress(AddressType_t type, const Address_t address);
|
||||
virtual ble_error_t getAddress(AddressType_t *typeP, Address_t address);
|
||||
virtual ble_error_t setAdvertisingData(const GapAdvertisingData &, const GapAdvertisingData &);
|
||||
|
||||
virtual uint16_t getMinAdvertisingInterval(void) const {return ADVERTISEMENT_DURATION_UNITS_TO_MS(BLE_GAP_ADV_INTERVAL_MIN);}
|
||||
|
|
Loading…
Reference in a new issue