mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
fix(bt/bluedroid): Fix the issue for HID congestion checking
This commit is contained in:
parent
a109dedaea
commit
eb65d0a9cd
@ -776,7 +776,7 @@ tHID_STATUS hidd_conn_send_data(uint8_t channel, uint8_t msg_type, uint8_t param
|
||||
}
|
||||
#endif
|
||||
HIDD_TRACE_VERBOSE("%s: report sent", __func__);
|
||||
if (p_hcon->conn_flags & HID_CONN_FLAGS_CONGESTED || !L2CA_DataWrite(cid, p_buf))
|
||||
if (L2CA_DataWrite(cid, p_buf) == L2CAP_DW_FAILED)
|
||||
return (HID_ERR_CONGESTED);
|
||||
return (HID_SUCCESS);
|
||||
}
|
||||
|
@ -928,7 +928,7 @@ tHID_STATUS hidh_conn_snd_data (UINT8 dhandle, UINT8 trans_type, UINT8 param,
|
||||
data_size -= bytes_copied;
|
||||
|
||||
/* Send the buffer through L2CAP */
|
||||
if ((p_hcon->conn_flags & HID_CONN_FLAGS_CONGESTED) || (!L2CA_DataWrite (cid, p_buf))) {
|
||||
if (L2CA_DataWrite(cid, p_buf) == L2CAP_DW_FAILED) {
|
||||
return (HID_ERR_CONGESTED);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user