Update timeout on Corsair Lighting Node controller

This commit is contained in:
Adam Honse
2021-12-30 21:16:10 -06:00
parent d7c08bcf91
commit 16bf0d918a

View File

@@ -265,7 +265,7 @@ void CorsairLightingNodeController::SendDirect
| Send packet |
\*-----------------------------------------------------*/
hid_write(dev, usb_buf, 65);
hid_read_timeout(dev, usb_buf, 17, 1);
hid_read_timeout(dev, usb_buf, 17, 5);
}
void CorsairLightingNodeController::SendCommit()
@@ -293,7 +293,7 @@ void CorsairLightingNodeController::SendCommit()
| Send packet |
\*-----------------------------------------------------*/
hid_write(dev, usb_buf, 65);
hid_read_timeout(dev, usb_buf, 17, 1);
hid_read_timeout(dev, usb_buf, 17, 5);
}
void CorsairLightingNodeController::SendBegin
@@ -456,7 +456,7 @@ void CorsairLightingNodeController::SendPortState
| Send packet |
\*-----------------------------------------------------*/
hid_write(dev, usb_buf, 65);
hid_read_timeout(dev, usb_buf, 17, 1);
hid_read_timeout(dev, usb_buf, 17, 5);
}
void CorsairLightingNodeController::SendBrightness