mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 14:42:58 +00:00
clean up
This commit is contained in:
parent
6de023d54b
commit
2b3d547b7b
@ -316,7 +316,7 @@ bool hidd_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t
|
|||||||
uint16_t report_len = request->wLength;
|
uint16_t report_len = request->wLength;
|
||||||
|
|
||||||
// If host request a specific Report ID, extract report ID in buffer before invoking callback
|
// If host request a specific Report ID, extract report ID in buffer before invoking callback
|
||||||
if ( (report_id != HID_REPORT_TYPE_INVALID) && (report_len > 1) && (report_id == p_hid->epout_buf[0]) )
|
if ( (report_id != HID_REPORT_TYPE_INVALID) && (report_len > 1) && (report_id == report_buf[0]) )
|
||||||
{
|
{
|
||||||
report_buf++;
|
report_buf++;
|
||||||
report_len--;
|
report_len--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user