summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-01 22:19:04 +0700
committerhathach <[email protected]>2019-10-01 22:19:04 +0700
commit204791b3e787ed75b0f9d722392a601458417ceb (patch)
tree284447f841559f42b146803a69bd118e03d2e0d0 /src/class
parent6479ee53d5ecaf2b47b59979239ac31868779c05 (diff)
2nd attempt to fix #161
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index b57d6219f..40ec52886 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -74,7 +74,7 @@ bool tud_hid_ready(void)
{
uint8_t itf = 0;
uint8_t const ep_in = _hidd_itf[itf].ep_in;
- return tud_ready() && (ep_in != 0) && !usbd_edpt_busy(TUD_OPT_RHPORT, ep_in);
+ return tud_ready() && (ep_in != 0) && usbd_edpt_ready(TUD_OPT_RHPORT, ep_in);
}
bool tud_hid_report(uint8_t report_id, void const* report, uint8_t len)