microbit: Update to acomodate changed ble-nrf51822 API

master
Joe Finney 2016-01-16 15:16:06 +00:00
parent 12cc720955
commit f0333be39e
1 changed files with 1 additions and 1 deletions

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;