From: zhiweijian Date: Tue, 4 Jul 2017 02:57:36 +0000 (+0800) Subject: Component/bt: fix bug for error length unit X-Git-Tag: v3.1-dev~488^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad8cce3053e08a5b2ca4b80b6a0881f7b7090b39;p=esp-idf Component/bt: fix bug for error length unit --- diff --git a/components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c b/components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c index c55201c76c..bfaa1cb7a4 100644 --- a/components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c +++ b/components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c @@ -138,7 +138,7 @@ void btc_gatts_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src) break; } case BTC_GATTS_ACT_SET_ATTR_VALUE:{ - uint8_t len = src->set_attr_val.length; + uint16_t len = src->set_attr_val.length; if(src->set_attr_val.value){ dst->set_attr_val.value = (uint8_t *)GKI_getbuf(len); if(dst->set_attr_val.value != NULL){ diff --git a/components/bt/bluedroid/stack/l2cap/l2c_ble.c b/components/bt/bluedroid/stack/l2cap/l2c_ble.c index d6fc16cca5..d30dc1cdc0 100644 --- a/components/bt/bluedroid/stack/l2cap/l2c_ble.c +++ b/components/bt/bluedroid/stack/l2cap/l2c_ble.c @@ -554,7 +554,6 @@ void l2cble_process_conn_update_evt (UINT16 handle, UINT8 status, UINT16 conn_in tL2C_LCB *p_lcb; L2CAP_TRACE_DEBUG("l2cble_process_conn_update_evt"); - L2CAP_TRACE_WARNING("l2cble_process_conn_update_evt: status: %d", status); /* See if we have a link control block for the remote device */ p_lcb = l2cu_find_lcb_by_handle(handle); if (!p_lcb) {