Skip to content

Commit 3faab72

Browse files
Go back to 50ms interval, but delay 10ms between packets
1 parent 18a1856 commit 3faab72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Controllers/HyperXKeyboardController/HyperXAlloyFPSController.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
179179
red_color_data
180180
);
181181

182-
std::this_thread::sleep_for(5ms);
182+
std::this_thread::sleep_for(10ms);
183183

184184
SendColor
185185
(
@@ -188,7 +188,7 @@ void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
188188
grn_color_data
189189
);
190190

191-
std::this_thread::sleep_for(5ms);
191+
std::this_thread::sleep_for(10ms);
192192

193193
SendColor
194194
(
@@ -197,7 +197,7 @@ void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
197197
blu_color_data
198198
);
199199

200-
std::this_thread::sleep_for(5ms);
200+
std::this_thread::sleep_for(10ms);
201201
}
202202

203203
/*-------------------------------------------------------------------------------------------------*\

Controllers/HyperXKeyboardController/RGBController_HyperXAlloyFPS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void RGBController_HyperXAlloyFPS::KeepaliveThreadFunction()
324324
{
325325
if(active_mode == 0)
326326
{
327-
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(100))
327+
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
328328
{
329329
UpdateLEDs();
330330
}

0 commit comments

Comments
 (0)