Changeset 1433ecda in mainline for uspace/lib/usbhid/src/hidparser.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
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
Note:
See TracChangeset
for help on using the changeset viewer.