mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
Merge pull request #89 from e-chip/master
Fix incorrect serialization in USB_SetHIDReportItemInfo() function (thanks to e-chip).
This commit is contained in:
commit
477326edc6
@ -364,8 +364,8 @@ void USB_SetHIDReportItemInfo(uint8_t* ReportData,
|
|||||||
|
|
||||||
while (DataBitsRem--)
|
while (DataBitsRem--)
|
||||||
{
|
{
|
||||||
if (ReportItem->Value & (1 << (CurrentBit % 8)))
|
if (ReportItem->Value & BitMask)
|
||||||
ReportData[CurrentBit / 8] |= BitMask;
|
ReportData[CurrentBit / 8] |= (1 << (CurrentBit % 8));
|
||||||
|
|
||||||
CurrentBit++;
|
CurrentBit++;
|
||||||
BitMask <<= 1;
|
BitMask <<= 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user