From d624675087ce0d18c2d3917c6dae869ba9461fe3 Mon Sep 17 00:00:00 2001 From: zwj Date: Thu, 11 Jun 2020 14:56:51 +0800 Subject: [PATCH] fix connection param update timeout --- components/bt/host/bluedroid/stack/l2cap/l2c_ble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c b/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c index 56f199193c..4aec7b67da 100644 --- a/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c +++ b/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c @@ -1279,7 +1279,7 @@ UINT32 CalConnectParamTimeout(tL2C_LCB *p_lcb) UINT32 timeout = 6; if (p_lcb != NULL){ //1.25 * conn_int *(1+ latency) *32 - timeout = (40 * ( 1 + p_lcb->current_used_conn_latency) * p_lcb->current_used_conn_interval + 500) / 1000; + timeout = (40 * ( 1 + p_lcb->current_used_conn_latency) * p_lcb->current_used_conn_interval + 1000) / 1000; if (timeout < 1){ timeout = 1; }else if (timeout > 120){