nordic
Fork of nRF51822 by
Diff: btle/btle_security.cpp
- Revision:
- 137:9bb49953de6a
- Parent:
- 136:fb674d7364bf
- Child:
- 138:aafab7b0a8bd
--- 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; }