For with fix for disconnection notifications
Fork of nRF51822 by
Diff: nRF51Gap.cpp
- Revision:
- 37:c29c330d942c
- Parent:
- 22:c6ee8136847e
- Child:
- 40:1cb3707fa798
diff -r bd0186ce644a -r c29c330d942c nRF51Gap.cpp --- a/nRF51Gap.cpp Thu Jul 03 10:01:02 2014 +0100 +++ b/nRF51Gap.cpp Mon Jul 07 13:43:31 2014 +0100 @@ -279,8 +279,9 @@ memcpy(dev_addr.addr, address, 6); ASSERT_INT(ERROR_NONE, - sd_ble_gap_address_set(&dev_addr), + sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &dev_addr), BLE_ERROR_PARAM_OUT_OF_RANGE); + return BLE_ERROR_NONE; }