Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...
Fork of nRF51822 by
Revision 136:9bb49953de6a, committed 2015-05-08
- Comitter:
- rgrover1
- Date:
- Fri May 08 15:33:56 2015 +0100
- Parent:
- 135:fb674d7364bf
- Child:
- 137:aafab7b0a8bd
- Commit message:
- Synchronized with git rev 85fcb2cb
Author: Rohit Grover
simplify some error handling.
Changed in this revision
btle/btle_security.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/btle/btle_security.cpp Fri May 08 15:33:56 2015 +0100 +++ b/btle/btle_security.cpp Fri May 08 15:33:56 2015 +0100 @@ -56,17 +56,25 @@ }; ret_code_t rc; - if ((rc = dm_register(&applicationInstance, &dm_param)) != NRF_SUCCESS) { - switch (rc) { - case NRF_ERROR_INVALID_STATE: - return BLE_ERROR_INVALID_STATE; - case NRF_ERROR_NO_MEM: - return BLE_ERROR_NO_MEM; - default: - return BLE_ERROR_UNSPECIFIED; - } + if ((rc = dm_register(&applicationInstance, &dm_param)) == NRF_SUCCESS) { + return BLE_ERROR_NONE; } + switch (rc) { + case NRF_ERROR_INVALID_STATE: + return BLE_ERROR_INVALID_STATE; + case NRF_ERROR_NO_MEM: + return BLE_ERROR_NO_MEM; + default: + return BLE_ERROR_UNSPECIFIED; + } +} + +ble_error_t +btle_deleteAllStoredDevices(void) +{ + ret_code_t rc; + return BLE_ERROR_NONE; }