From 49ad8bf6c319dbf0919eba59ad9547fab34094c8 Mon Sep 17 00:00:00 2001 From: zhiweijian Date: Thu, 12 Oct 2017 21:07:40 +0800 Subject: [PATCH] Component/bt: fix register more than 3 app_id failed --- components/bt/bluedroid/bta/include/bta_gattc_int.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/bt/bluedroid/bta/include/bta_gattc_int.h b/components/bt/bluedroid/bta/include/bta_gattc_int.h index 701b3b58c..3a1e71915 100644 --- a/components/bt/bluedroid/bta/include/bta_gattc_int.h +++ b/components/bt/bluedroid/bta/include/bta_gattc_int.h @@ -72,7 +72,11 @@ typedef UINT16 tBTA_GATTC_INT_EVT; /* max client application GATTC can support */ #ifndef BTA_GATTC_CL_MAX -#define BTA_GATTC_CL_MAX 3 // 32 +#if (GATT_MAX_PHY_CHANNEL > 3) + #define BTA_GATTC_CL_MAX GATT_MAX_PHY_CHANNEL +#else + #define BTA_GATTC_CL_MAX 3 // The origin value is 10 +#endif #endif /* max known devices GATTC can support */