Changeset 1433ecda in mainline for uspace/lib/usbhid/src
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/lib/usbhid/src
- Files:
-
- 2 edited
-
hidparser.c (modified) (2 diffs)
-
hidpath.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidparser.c
r47b2d7e3 r1433ecda 381 381 tmp_value = tmp_value << (offset % 8); 382 382 383 mask = ~(((1 << (8 - (offset % 8))) - 1) 384 << (offset % 8)); 383 mask = ~(((1 << (8 - (offset % 8))) - 1) << (offset % 8)); 385 384 386 385 buffer[i] = (buffer[i] & mask) | … … 471 470 return NULL; 472 471 } 473 memcpy(new_report_item, item, sizeof(usb_hid_report_item_t));472 memcpy(new_report_item, item, sizeof(usb_hid_report_item_t)); 474 473 link_initialize(&(new_report_item->link)); 475 474 -
uspace/lib/usbhid/src/hidpath.c
r47b2d7e3 r1433ecda 150 150 if (!list_empty(&usage_path->items)) { 151 151 item = list_get_instance(list_last(&usage_path->items), 152 usb_hid_report_usage_path_t, rpath_items_link);152 usb_hid_report_usage_path_t, rpath_items_link); 153 153 154 154 switch (tag) { … … 293 293 294 294 while ((report_link != &report_path->items.head) && 295 (path_link != &path->items.head)) {295 (path_link != &path->items.head)) { 296 296 report_item = list_get_instance(report_link, 297 297 usb_hid_report_usage_path_t, rpath_items_link); … … 334 334 if (path == NULL) { 335 335 return NULL; 336 } 337 else { 336 } else { 338 337 path->depth = 0; 339 338 path->report_id = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
