mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-06-12 11:54:14 +00:00
Fix USB_SetHIDReportItemInfo() function.
Bits applying loop worked incorrect on large reports. Seems to me like a copy/paste problem from USB_GetHIDReportItemInfo().
This commit is contained in:
parent
def392aca0
commit
66db760a33
@ -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