Shuta Nakamae / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri May 08 15:33:57 2015 +0100
Parent:
141:586e146a3903
Child:
143:9d73e7f9f2bf
Commit message:
Synchronized with git rev 50932572
Author: Rohit Grover
intermediate checkin with stray debugging printfs

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:57 2015 +0100
@@ -94,6 +94,7 @@
     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 @@
     }
 
     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;