summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-24 12:33:56 +0700
committerhathach <[email protected]>2019-05-24 12:33:56 +0700
commit5f34c63660348f422d1b3934fd03cee62cbf3092 (patch)
tree351c687bcf917b1adfd720b7400997ee18320ee7 /src
parent231773cae92991c9e16675bfb3772fb19d214f84 (diff)
should fix and work with #58
- add hid_test_js
Diffstat (limited to 'src')
-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 9089ac6b5..aea16efc1 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -78,7 +78,7 @@ bool tud_hid_ready(void)
bool tud_hid_report(uint8_t report_id, void const* report, uint8_t len)
{
- TU_VERIFY( tud_hid_ready() && (len < CFG_TUD_HID_BUFSIZE) );
+ TU_VERIFY( tud_hid_ready() && (len <= CFG_TUD_HID_BUFSIZE) );
uint8_t itf = 0;
hidd_interface_t * p_hid = &_hidd_itf[itf];