Merge pull request #109 from fermiumlabs/develop

Fix for compilation errors with S110 softdevice in btle.cpp
This commit is contained in:
Vincent Coubard 2016-02-16 17:10:14 +00:00
commit 7583927faf
1 changed files with 2 additions and 0 deletions

View File

@ -189,10 +189,12 @@ static void btle_handler(ble_evt_t *p_ble_evt)
break;
}
#if !defined(TARGET_MCU_NRF51_16K_S110) && !defined(TARGET_MCU_NRF51_32K_S110)
// Close all pending discoveries for this connection
nRF5xGattClient& gattClient = ble.getGattClient();
gattClient.characteristicDescriptorDiscoverer().terminate(handle, BLE_ERROR_INVALID_STATE);
gattClient.discovery().terminate(handle);
#endif
gap.processDisconnectionEvent(handle, reason);
break;