intermediate checkin with stray debugging printfs
This commit is contained in:
parent
d99e272f7c
commit
509325724e
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,7 @@ btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *
|
|||
ret_code_t rc;
|
||||
dm_handle_t dmHandle;
|
||||
if ((rc = dm_handle_get(connectionHandle, &dmHandle)) != NRF_SUCCESS) {
|
||||
printf("dm_handle_get failed with %u\r\n", rc);
|
||||
if (rc == NRF_ERROR_NOT_FOUND) {
|
||||
return BLE_ERROR_INVALID_PARAM;
|
||||
} else {
|
||||
|
@ -102,6 +103,7 @@ btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *
|
|||
}
|
||||
|
||||
if ((rc = dm_security_status_req(&dmHandle, reinterpret_cast<dm_security_status_t *>(securityStatusP))) != NRF_SUCCESS) {
|
||||
printf("security status request failed\r\n");
|
||||
switch (rc) {
|
||||
case NRF_ERROR_INVALID_STATE:
|
||||
return BLE_ERROR_INVALID_STATE;
|
||||
|
|
Loading…
Reference in a new issue