Increase Corsair Lighting Node read timeout to 15ms to fix issues with some CorsairLightingProtocol setups
This commit is contained in:
parent
8d14059d2e
commit
841b85a589
2 changed files with 4 additions and 4 deletions
|
|
@ -270,7 +270,7 @@ void CorsairLightingNodeController::SendDirect
|
|||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
WriteAndRead(usb_buf, 5);
|
||||
WriteAndRead(usb_buf, CORSAIR_LIGHTING_NODE_READ_TIMEOUT);
|
||||
}
|
||||
|
||||
void CorsairLightingNodeController::SendCommit()
|
||||
|
|
@ -297,7 +297,7 @@ void CorsairLightingNodeController::SendCommit()
|
|||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
WriteAndRead(usb_buf, 5);
|
||||
WriteAndRead(usb_buf, CORSAIR_LIGHTING_NODE_READ_TIMEOUT);
|
||||
}
|
||||
|
||||
void CorsairLightingNodeController::SendBegin
|
||||
|
|
@ -456,7 +456,7 @@ void CorsairLightingNodeController::SendPortState
|
|||
/*-----------------------------------------------------*\
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
WriteAndRead(usb_buf, 5);
|
||||
WriteAndRead(usb_buf, CORSAIR_LIGHTING_NODE_READ_TIMEOUT);
|
||||
}
|
||||
|
||||
void CorsairLightingNodeController::SendBrightness
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#define CORSAIR_LIGHTING_NODE_WRITE_PACKET_SIZE 65 /* First byte is the report number */
|
||||
#define CORSAIR_LIGHTING_NODE_READ_PACKET_SIZE 17 /* First byte is the report number */
|
||||
|
||||
#define CORSAIR_LIGHTING_NODE_READ_TIMEOUT 15 /* Timeout in milliseconds */
|
||||
enum
|
||||
{
|
||||
CORSAIR_LIGHTING_NODE_PACKET_ID_FIRMWARE = 0x02, /* Get firmware version */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue