Fix Logitech G815 keyboard freezing

Keyboard may freeze when running GHUB and OpenRGB at the same time. This fixes this.

Commits squashed by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
Cheerpipe 2021-06-26 13:28:29 -04:00 committed by Adam Honse
parent a008f14e38
commit 002fc4f2b3
2 changed files with 4 additions and 3 deletions

View file

@ -90,7 +90,7 @@ void LogitechG815Controller::SendCommit()
| Send packet |
\*-----------------------------------------------------*/
hid_write(dev_pkt_0x11, (unsigned char *)usb_buf, 20);
hid_read(dev_pkt_0x11, (unsigned char *)usb_buf, 20);
hid_read_timeout(dev_pkt_0x11, (unsigned char *)usb_buf, 20, LOGITECH_READ_TIMEOUT);
}
void LogitechG815Controller::InitializeDirect()
@ -243,7 +243,7 @@ void LogitechG815Controller::SendDirectFrame
| Send packet |
\*-----------------------------------------------------*/
hid_write(dev_pkt_0x11, (unsigned char *)usb_buf, 20);
hid_read(dev_pkt_0x11, (unsigned char *)usb_buf, 20);
hid_read_timeout(dev_pkt_0x11, (unsigned char *)usb_buf, 20, LOGITECH_READ_TIMEOUT);
}
void LogitechG815Controller::SendMode