mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'bugfix/fix_hid_congestion_v4.4' into 'release/v4.4'
Fix(bt/bluedroid): Fix the issue for HID congestion checking[backport 4.4] See merge request espressif/esp-idf!26233
This commit is contained in:
@ -772,7 +772,7 @@ tHID_STATUS hidd_conn_send_data(uint8_t channel, uint8_t msg_type, uint8_t param
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
HIDD_TRACE_VERBOSE("%s: report sent", __func__);
|
HIDD_TRACE_VERBOSE("%s: report sent", __func__);
|
||||||
if (!L2CA_DataWrite(cid, p_buf))
|
if (L2CA_DataWrite(cid, p_buf) == L2CAP_DW_FAILED)
|
||||||
return (HID_ERR_CONGESTED);
|
return (HID_ERR_CONGESTED);
|
||||||
return (HID_SUCCESS);
|
return (HID_SUCCESS);
|
||||||
}
|
}
|
||||||
|
@ -928,7 +928,7 @@ tHID_STATUS hidh_conn_snd_data (UINT8 dhandle, UINT8 trans_type, UINT8 param,
|
|||||||
data_size -= bytes_copied;
|
data_size -= bytes_copied;
|
||||||
|
|
||||||
/* Send the buffer through L2CAP */
|
/* 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);
|
return (HID_ERR_CONGESTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user