Changes in uspace/lib/usb/src/hidparser.c [6336b6e:3b77628] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
r6336b6e r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 35 35 #include <usb/classes/hidparser.h> 36 36 #include <errno.h> 37 #include <stdio.h>38 37 39 38 /** Parse HID report descriptor. … … 121 120 item.logical_max = 255; 122 121 123 if (size != 8){124 return ERANGE;122 if(size != 8){ 123 return -1; 125 124 } 126 125 127 126 uint8_t keys[6]; 128 for (i = 0; i <item.count; i++) {129 keys[i ] = data[i + item.offset];127 for(i=item.offset; i<item.count; i++) { 128 keys[i-2] = data[i]; 130 129 } 131 130
Note:
See TracChangeset
for help on using the changeset viewer.