nordic
Fork of nRF51822 by
Diff: btle/btle_security.cpp
- Revision:
- 142:586e146a3903
- Parent:
- 141:3a5282e3f30c
- Child:
- 143:b6fe43a5c18f
--- 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 @@ -91,8 +91,8 @@ ble_error_t btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *securityStatusP) { + ret_code_t rc; dm_handle_t dmHandle; - ret_code_t rc; if ((rc = dm_handle_get(connectionHandle, &dmHandle)) != NRF_SUCCESS) { if (rc == NRF_ERROR_NOT_FOUND) { return BLE_ERROR_INVALID_PARAM;