From f0333be39e6593064fc913fa98088702744a3a20 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Sat, 16 Jan 2016 15:16:06 +0000 Subject: [PATCH] microbit: Update to acomodate changed ble-nrf51822 API --- source/nRF5xGattServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nRF5xGattServer.cpp b/source/nRF5xGattServer.cpp index c49d8a1..d1f9657 100644 --- a/source/nRF5xGattServer.cpp +++ b/source/nRF5xGattServer.cpp @@ -291,7 +291,7 @@ ble_error_t nRF5xGattServer::write(Gap::Handle_t connectionHandle, GattAttribute */ ble_error_t nRF5xGattServer::notify(GattAttribute::Handle_t attributeHandle, const uint8_t buffer[], uint16_t len) { - uint16_t gapConnectionHandle = nRF5xGap::getInstance().getConnectionHandle(); + uint16_t gapConnectionHandle = ((nRF5xGap &)nRF5xn::Instance(BLE::DEFAULT_INSTANCE).getGap()).getConnectionHandle(); ble_gatts_hvx_params_t hvx_params; hvx_params.handle = attributeHandle;