diff options
| author | hathach <[email protected]> | 2021-07-01 23:05:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-07-01 23:05:21 +0700 |
| commit | 2b3d547b7bccf46c6a274c75cb1769532611c5bf (patch) | |
| tree | 92be73ea894c0a145b33d4169accbf4575d02f8e /src/class | |
| parent | 6de023d54b944bb467327062e79f3854e79b71a2 (diff) | |
clean up
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index 65c7d1a18..a10e3a5e3 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -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; // 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_len--; |
