fix C3/S3 ble multi-connection failed when device acts as master and slave

This commit is contained in:
zwj 2021-05-08 16:08:30 +08:00 committed by bot
parent 2e64d234c4
commit 1957025f4a

View File

@ -168,7 +168,11 @@ typedef UINT8 tBTM_BLE_SFP;
/* default connection interval max */ /* default connection interval max */
#ifndef BTM_BLE_CONN_INT_MAX_DEF #ifndef BTM_BLE_CONN_INT_MAX_DEF
#if CONFIG_IDF_TARGET_ESP32
#define BTM_BLE_CONN_INT_MAX_DEF 12 /* recommended max: 15 ms = 12 * 1.25 */ #define BTM_BLE_CONN_INT_MAX_DEF 12 /* recommended max: 15 ms = 12 * 1.25 */
#else
#define BTM_BLE_CONN_INT_MAX_DEF (((MAX_ACL_CONNECTIONS + 1) * 4) > 12 ? ((MAX_ACL_CONNECTIONS + 1) * 4) : 12) /* recommended max: BTM_BLE_CONN_INT_MAX_DEF * 1.25 ms*/
#endif
#endif #endif
/* default slave latency */ /* default slave latency */