Commit 8a56a510 authored by Cheerpipe's avatar Cheerpipe Committed by Adam Honse
Browse files

Packet read size fix. Should be 20, not 200

This bug causes rare unwanted volume changes.
parent 3026a10f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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