From a7d12effed01341a27ee72e8979e52440f1ec2bf Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Thu, 4 Sep 2014 21:08:31 +0000 Subject: [PATCH] add missing have_ble check --- src/btstack_memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/btstack_memory.c b/src/btstack_memory.c index 65f2920bb..687529999 100644 --- a/src/btstack_memory.c +++ b/src/btstack_memory.c @@ -381,8 +381,10 @@ void btstack_memory_init(void){ #if MAX_NO_DB_MEM_SERVICES > 0 memory_pool_create(&db_mem_service_pool, db_mem_service_storage, MAX_NO_DB_MEM_SERVICES, sizeof(db_mem_service_t)); #endif +#ifdef HAVE_BLE #if MAX_NO_GATT_CLIENTS > 0 memory_pool_create(&gatt_client_pool, gatt_client_storage, MAX_NO_GATT_CLIENTS, sizeof(gatt_client_t)); #endif +#endif }