Packet read size fix. Should be 20, not 200

This bug causes rare unwanted volume changes.
This commit is contained in:
Cheerpipe 2021-04-19 09:36:30 -04:00 committed by Adam Honse
parent 3026a10ff8
commit 8a56a5103c

View file

@ -134,7 +134,7 @@ void LogitechG560Controller::fail_retry_write(hid_device *device, const unsigned
if(ret == 20)
{
std::this_thread::sleep_for(1ms);
hid_read_timeout(dev, usb_buf_out, LOGI_G560_LED_PACKET_SIZE, 200);
hid_read_timeout(dev, usb_buf_out, LOGI_G560_LED_PACKET_SIZE, 20);
break;
}
else