diff options
| author | hathach <[email protected]> | 2019-04-02 02:14:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-04-02 02:14:39 +0700 |
| commit | 4af16efea706655a814d55e02f8d0463f4d29cf3 (patch) | |
| tree | 0fdf71091db930cd0271daa8a41a0e8351b64a97 | |
| parent | dd9c441a612651c980b6eec748383bf58dea3d52 (diff) | |
add tud_ready() to hid_ready()
| -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 765ee042e..5c81a1268 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -107,7 +107,7 @@ static inline hidd_interface_t* get_interface_by_itfnum(uint8_t itf_num) //--------------------------------------------------------------------+
bool tud_hid_generic_ready(void)
{
- return (_hidd_itf[ITF_IDX_GENERIC].ep_in != 0) && !dcd_edpt_busy(TUD_OPT_RHPORT, _hidd_itf[ITF_IDX_GENERIC].ep_in);
+ return tud_ready() && (_hidd_itf[ITF_IDX_GENERIC].ep_in != 0) && !dcd_edpt_busy(TUD_OPT_RHPORT, _hidd_itf[ITF_IDX_GENERIC].ep_in);
}
bool tud_hid_generic_report(uint8_t report_id, void const* report, uint8_t len)
|
