diff options
| author | hathach <[email protected]> | 2022-12-20 12:06:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-20 12:06:59 +0700 |
| commit | 7004914d8c6c7d88908776eb153661b6b987e513 (patch) | |
| tree | 8a1a57ac5ee50273f5d539b09379501823d60358 /src/class/hid | |
| parent | fc9321ce26ed5662cfa6a48b52507b4a39a8cc08 (diff) | |
fix hid host incorrect edpt release if failed to transmit
add CDC_CONTROL_LINE_STATE_DTR/RTS, TUSB_INDEX_INVALID enum
Diffstat (limited to 'src/class/hid')
| -rw-r--r-- | src/class/hid/hid_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c index 504ddca1e..42b5e2f4e 100644 --- a/src/class/hid/hid_host.c +++ b/src/class/hid/hid_host.c @@ -259,7 +259,7 @@ bool tuh_hid_receive_report(uint8_t dev_addr, uint8_t instance) if ( !usbh_edpt_xfer(dev_addr, hid_itf->ep_in, hid_itf->epin_buf, hid_itf->epin_size) ) { - usbh_edpt_claim(dev_addr, hid_itf->ep_in); + usbh_edpt_release(dev_addr, hid_itf->ep_in); return false; } |
