Changeset c7c0984a in mainline
- Timestamp:
- 2011-04-21T20:47:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2020927, eb393ad
- Parents:
- cfbbe1d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
rcfbbe1d3 rc7c0984a 362 362 offset_output = 0; 363 363 offset_feature = 0; 364 usb_hid_report_path_set_report_id (usage_path, report_item->id); 364 365 break; 365 366 … … 1250 1251 return NULL; 1251 1252 } 1253 1254 new_usage_path->report_id = usage_path->report_id; 1252 1255 1253 1256 if(list_empty(&usage_path->head)){ … … 1639 1642 while(field_it != &report_des->report_items) { 1640 1643 field = list_get_instance(field_it, usb_hid_report_field_t, link); 1641 1642 usb_hid_report_path_append_item (field->collection_path, field->usage_page, field->usage); 1643 if(usb_hid_report_compare_usage_path (field->collection_path, path, flags) == EOK){ 1644 1645 if(USB_HID_ITEM_FLAG_CONSTANT(field->item_flags) == 0) { 1646 usb_hid_report_path_append_item (field->collection_path, field->usage_page, field->usage); 1647 if(usb_hid_report_compare_usage_path (field->collection_path, path, flags) == EOK){ 1648 usb_hid_report_remove_last_item (field->collection_path); 1649 return field; 1650 } 1644 1651 usb_hid_report_remove_last_item (field->collection_path); 1645 return field; 1646 } 1647 usb_hid_report_remove_last_item (field->collection_path); 1648 1652 } 1649 1653 field_it = field_it->next; 1650 1654 }
Note:
See TracChangeset
for help on using the changeset viewer.