BUGFIX: Add conditional compilation to support S110 only builds

S110 builds contian a conditional compilation option that compiles out
GattClient functionality, thereby saving several hundred bytes of unecessary
memory overhead.
Joe Finney 2016-01-16 15:11:48 +00:00
parent 93dd3fcc5b
commit 12cc720955
1 changed files with 2 additions and 0 deletions

View File

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