microbit: Update to acomodate changed ble-nrf51822 API

This commit is contained in:
Joe Finney 2016-01-16 15:16:06 +00:00
parent 12cc720955
commit f0333be39e

View file

@ -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;