From 12cc72095578bd63bb141f383b952040c9dd7eb5 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Sat, 16 Jan 2016 15:11:48 +0000 Subject: [PATCH] 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. --- source/btle/btle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/btle/btle.cpp b/source/btle/btle.cpp index 01c31d3..76ec63d 100644 --- a/source/btle/btle.cpp +++ b/source/btle/btle.cpp @@ -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); gattClient.discovery().terminate(handle); +#endif gap.processDisconnectionEvent(handle, reason); break;