minor re-ordering of variables.

This commit is contained in:
Rohit Grover 2015-04-23 08:06:49 +01:00
parent f258300a53
commit d99e272f7c

View file

@ -91,8 +91,8 @@ btle_purgeAllBondingState(void)
ble_error_t
btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *securityStatusP)
{
dm_handle_t dmHandle;
ret_code_t rc;
dm_handle_t dmHandle;
if ((rc = dm_handle_get(connectionHandle, &dmHandle)) != NRF_SUCCESS) {
if (rc == NRF_ERROR_NOT_FOUND) {
return BLE_ERROR_INVALID_PARAM;