From d79aeab3aaeb2843003ed7e97b21cba10cd27537 Mon Sep 17 00:00:00 2001 From: Yulong Date: Thu, 22 Jun 2017 03:53:27 -0400 Subject: [PATCH] component/bt: Added the error log to the l2cble_start_conn_update func. --- components/bt/bluedroid/stack/l2cap/l2c_ble.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bt/bluedroid/stack/l2cap/l2c_ble.c b/components/bt/bluedroid/stack/l2cap/l2c_ble.c index 8d8edbb34..6d2c00811 100644 --- a/components/bt/bluedroid/stack/l2cap/l2c_ble.c +++ b/components/bt/bluedroid/stack/l2cap/l2c_ble.c @@ -472,6 +472,7 @@ static BOOLEAN l2cble_start_conn_update (tL2C_LCB *p_lcb) UINT8 status; if (p_lcb->conn_update_mask & L2C_BLE_UPDATE_PENDING) { + L2CAP_TRACE_ERROR("%s, the last connection update command still pending.", __func__); return FALSE; } @@ -949,9 +950,9 @@ void l2cble_process_rc_param_request_evt(UINT16 handle, UINT16 int_min, UINT16 i p_lcb->max_interval = int_max; p_lcb->latency = latency; p_lcb->timeout = timeout; - p_lcb->conn_update_mask |= L2C_BLE_UPDATE_PENDING; /* if update is enabled, always accept connection parameter update */ if ((p_lcb->conn_update_mask & L2C_BLE_CONN_UPDATE_DISABLE) == 0) { + p_lcb->conn_update_mask |= L2C_BLE_UPDATE_PENDING; btsnd_hcic_ble_rc_param_req_reply(handle, int_min, int_max, latency, timeout, 0, 0); } else { L2CAP_TRACE_EVENT ("L2CAP - LE - update currently disabled");