]> granicus.if.org Git - esp-idf/commitdiff
Component/bt: fix register more than 3 app_id failed
authorzhiweijian <zhiweijian@espressif.com>
Thu, 12 Oct 2017 13:07:40 +0000 (21:07 +0800)
committerzhiweijian <zhiweijian@espressif.com>
Thu, 12 Oct 2017 13:07:40 +0000 (21:07 +0800)
components/bt/bluedroid/bta/include/bta_gattc_int.h

index 701b3b58c1b5a8476624d43481302a434d0995df..3a1e719159518c2fb66895e856a0ea923acbccc1 100644 (file)
@@ -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 */