diff options
| author | Zachery Littell <[email protected]> | 2020-10-08 12:08:13 -0500 |
|---|---|---|
| committer | Zachery Littell <[email protected]> | 2020-10-08 12:08:13 -0500 |
| commit | a4ba1f08275bc6fe8ce1f73d24f353861839cce7 (patch) | |
| tree | 16b563c142be997fd3fb046a2da334b263e36dc5 /src | |
| parent | 298aa1b669a5c77f991c8161ba4c7d84f7a2b674 (diff) | |
Fix tu_verify args
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/hid/hid_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index 09daa0309..45b6aaaca 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -232,7 +232,7 @@ bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * request #if CFG_TUD_HID>1 uint8_t const hid_itf = get_hid_index_by_itfnum((uint8_t) request->wIndex); - TU_VERIFY(hid_itf<0xFF, 0); + TU_VERIFY(hid_itf<0xFF); #endif if (request->bmRequestType_bit.type == TUSB_REQ_TYPE_STANDARD) @@ -346,7 +346,7 @@ bool hidd_control_complete(uint8_t rhport, tusb_control_request_t const * p_requ #if CFG_TUD_HID>1 uint8_t const hid_itf = get_hid_index_by_itfnum((uint8_t)p_request->wIndex); - TU_VERIFY(hid_itf<0xFF, 0); + TU_VERIFY(hid_itf<0xFF); tud_hid_n_set_report_cb(hid_itf, report_id, (hid_report_type_t) report_type, p_hid->epout_buf, p_request->wLength); #else tud_hid_set_report_cb(report_id, (hid_report_type_t) report_type, p_hid->epout_buf, p_request->wLength); |
