Changeset 8bec4d1 in mainline
- Timestamp:
- 2011-03-08T19:25:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 021351c, 60a228f
- Parents:
- 3de529c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
r3de529c r8bec4d1 119 119 } 120 120 link_initialize(&(report_item->link)); 121 121 122 122 while(i<size){ 123 123 if(!USB_HID_ITEM_IS_LONG(data[i])){ 124 124 125 if((i+ 1)>= size){125 if((i+USB_HID_ITEM_SIZE(data[i]))>= size){ 126 126 return -1; // TODO ERROR CODE 127 127 } … … 200 200 } 201 201 202 203 202 return EOK; 204 203 } … … 326 325 case USB_HID_REPORT_TAG_COLLECTION: 327 326 // TODO 327 return USB_HID_NO_ACTION; 328 328 break; 329 329 330 330 case USB_HID_REPORT_TAG_END_COLLECTION: 331 331 /* should be ignored */ 332 return USB_HID_NO_ACTION; 332 333 break; 333 334 default: … … 335 336 } 336 337 337 return USB_HID_NO_ACTION;338 return EOK; 338 339 } 339 340
Note:
See TracChangeset
for help on using the changeset viewer.