diff options
| author | hathach <[email protected]> | 2019-10-02 10:37:26 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-02 10:37:26 +0700 |
| commit | ee63111ea08b0cc5c37a4dcc8511b8031128cb7d (patch) | |
| tree | 284447f841559f42b146803a69bd118e03d2e0d0 /src/class | |
| parent | d3e48da5a1266a88f5f0fdfe28818c8599b09844 (diff) | |
| parent | 204791b3e787ed75b0f9d722392a601458417ceb (diff) | |
Merge pull request #192 from hathach/develop
2nd attempt to fix #161
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 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)
|
