23 lines
720 B
Diff
23 lines
720 B
Diff
|
diff --git a/drivers/libhid.c b/drivers/libhid.c
|
||
|
index 9387657..f2e8fbb 100644
|
||
|
--- a/drivers/libhid.c
|
||
|
+++ b/drivers/libhid.c
|
||
|
@@ -141,7 +141,7 @@ static int refresh_report_buffer(reportbuf_t *rbuf, hid_dev_handle_t udev, HIDDa
|
||
|
{
|
||
|
int id = pData->ReportID;
|
||
|
int r;
|
||
|
- unsigned char buf[SMALLBUF];
|
||
|
+ unsigned char buf[8];
|
||
|
|
||
|
if (rbuf->ts[id] + age > time(NULL)) {
|
||
|
/* buffered report is still good; nothing to do */
|
||
|
@@ -469,7 +469,7 @@ bool_t HIDSetItemValue(hid_dev_handle_t udev, const char *hidpath, double Value,
|
||
|
*/
|
||
|
int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize)
|
||
|
{
|
||
|
- unsigned char buf[SMALLBUF];
|
||
|
+ unsigned char buf[8];
|
||
|
int itemCount = 0;
|
||
|
int buflen, r, i;
|
||
|
HIDData_t *pData;
|