Changes in uspace/lib/usbhid/src/hidparser.c [dd19446:09ab0a9a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidparser.c
rdd19446 r09ab0a9a 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( (unsigned)bits, 8 - bit_offset);227 const int lsb_bits = min(bits, 8); 228 228 229 229 value |= (*data >> bit_offset) & BIT_RRANGE(uint8_t, lsb_bits);
Note:
See TracChangeset
for help on using the changeset viewer.