Skip to content

Commit 6287b22

Browse files
Reduce direct mode timing to 2ms, revert static timing
1 parent 3925f4e commit 6287b22

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Controllers/HyperXKeyboardController/HyperXAlloyFPSController.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,21 @@ void HyperXAlloyFPSController::SetLEDsDirect(std::vector<RGBColor> colors)
139139
red_color_data
140140
);
141141

142-
std::this_thread::sleep_for(5ms);
142+
std::this_thread::sleep_for(2ms);
143143

144144
SendDirect
145145
(
146146
HYPERX_ALLOY_FPS_COLOR_CHANNEL_GREEN,
147147
grn_color_data
148148
);
149149

150-
std::this_thread::sleep_for(5ms);
150+
std::this_thread::sleep_for(2ms);
151151

152152
SendDirect
153153
(
154154
HYPERX_ALLOY_FPS_COLOR_CHANNEL_BLUE,
155155
blu_color_data
156156
);
157-
158-
std::this_thread::sleep_for(5ms);
159157
}
160158

161159
void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
@@ -179,7 +177,7 @@ void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
179177
red_color_data
180178
);
181179

182-
std::this_thread::sleep_for(15ms);
180+
std::this_thread::sleep_for(5ms);
183181

184182
SendColor
185183
(
@@ -188,16 +186,14 @@ void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
188186
grn_color_data
189187
);
190188

191-
std::this_thread::sleep_for(15ms);
189+
std::this_thread::sleep_for(5ms);
192190

193191
SendColor
194192
(
195193
0x01,
196194
HYPERX_ALLOY_FPS_COLOR_CHANNEL_BLUE,
197195
blu_color_data
198196
);
199-
200-
std::this_thread::sleep_for(15ms);
201197
}
202198

203199
/*-------------------------------------------------------------------------------------------------*\

0 commit comments

Comments
 (0)