Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: nRF51Gap.cpp
- Revision:
- 179:10e4c13360d9
- Parent:
- 77:9886b2865631
- Child:
- 181:ce044982b915
--- a/nRF51Gap.cpp Mon May 18 09:53:05 2015 +0100 +++ b/nRF51Gap.cpp Mon Jun 08 10:43:29 2015 +0100 @@ -304,7 +304,7 @@ @endcode */ /**************************************************************************/ -ble_error_t nRF51Gap::setAddress(addr_type_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; @@ -319,7 +319,7 @@ return BLE_ERROR_NONE; } -ble_error_t nRF51Gap::getAddress(addr_type_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) { @@ -327,7 +327,7 @@ } if (typeP != NULL) { - *typeP = static_cast<addr_type_t>(dev_addr.addr_type); + *typeP = static_cast<AddressType_t>(dev_addr.addr_type); } if (address != NULL) { memcpy(address, dev_addr.addr, ADDR_LEN);