Changeset 34aad53d in mainline for uspace/lib/usbhid/src/hidparser.c
- Timestamp:
- 2024-04-07T09:45:45Z (8 weeks ago)
- Children:
- c37c24c
- Parents:
- e4cc266 (diff), 522eecf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidparser.c
re4cc266 r34aad53d 225 225 /* Than we take the higher bits from the LSB */ 226 226 const unsigned bit_offset = item->offset % 8; 227 const int lsb_bits = min( bits, 8);227 const int lsb_bits = min((unsigned)bits, 8 - bit_offset); 228 228 229 229 value |= (*data >> bit_offset) & BIT_RRANGE(uint8_t, lsb_bits);
Note:
See TracChangeset
for help on using the changeset viewer.