Add timeouts to fix HyperX and Poseidon Z RGB in Linux
This commit is contained in:
parent
c7960c090a
commit
50ea274205
2 changed files with 12 additions and 3 deletions
|
|
@ -137,7 +137,7 @@ void HyperXKeyboardController::SetLEDsDirect(std::vector<RGBColor> colors)
|
|||
red_color_data
|
||||
);
|
||||
|
||||
Sleep(2);
|
||||
Sleep(5);
|
||||
|
||||
SendDirect
|
||||
(
|
||||
|
|
@ -145,7 +145,7 @@ void HyperXKeyboardController::SetLEDsDirect(std::vector<RGBColor> colors)
|
|||
grn_color_data
|
||||
);
|
||||
|
||||
Sleep(2);
|
||||
Sleep(5);
|
||||
|
||||
SendDirect
|
||||
(
|
||||
|
|
@ -153,7 +153,7 @@ void HyperXKeyboardController::SetLEDsDirect(std::vector<RGBColor> colors)
|
|||
blu_color_data
|
||||
);
|
||||
|
||||
Sleep(2);
|
||||
Sleep(5);
|
||||
|
||||
SendDirectExtended
|
||||
(
|
||||
|
|
@ -189,6 +189,8 @@ void HyperXKeyboardController::SetLEDs(std::vector<RGBColor> colors)
|
|||
red_color_data
|
||||
);
|
||||
|
||||
Sleep(5);
|
||||
|
||||
SendColor
|
||||
(
|
||||
0x01,
|
||||
|
|
@ -196,6 +198,8 @@ void HyperXKeyboardController::SetLEDs(std::vector<RGBColor> colors)
|
|||
grn_color_data
|
||||
);
|
||||
|
||||
Sleep(5);
|
||||
|
||||
SendColor
|
||||
(
|
||||
0x01,
|
||||
|
|
@ -203,6 +207,8 @@ void HyperXKeyboardController::SetLEDs(std::vector<RGBColor> colors)
|
|||
blu_color_data
|
||||
);
|
||||
|
||||
Sleep(5);
|
||||
|
||||
SendExtendedColor
|
||||
(
|
||||
0x01,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue