@@ -139,28 +139,21 @@ void HyperXAlloyFPSController::SetLEDsDirect(std::vector<RGBColor> colors)
139
139
red_color_data
140
140
);
141
141
142
- std::this_thread::sleep_for (5ms );
142
+ std::this_thread::sleep_for (10ms );
143
143
144
144
SendDirect
145
145
(
146
146
HYPERX_ALLOY_FPS_COLOR_CHANNEL_GREEN,
147
147
grn_color_data
148
148
);
149
149
150
- std::this_thread::sleep_for (5ms );
150
+ std::this_thread::sleep_for (10ms );
151
151
152
152
SendDirect
153
153
(
154
154
HYPERX_ALLOY_FPS_COLOR_CHANNEL_BLUE,
155
155
blu_color_data
156
156
);
157
-
158
- std::this_thread::sleep_for (5ms);
159
-
160
- SendDirectExtended
161
- (
162
- ext_color_data
163
- );
164
157
}
165
158
166
159
void HyperXAlloyFPSController::SetLEDs (std::vector<RGBColor> colors)
@@ -201,14 +194,6 @@ void HyperXAlloyFPSController::SetLEDs(std::vector<RGBColor> colors)
201
194
HYPERX_ALLOY_FPS_COLOR_CHANNEL_BLUE,
202
195
blu_color_data
203
196
);
204
-
205
- std::this_thread::sleep_for (5ms);
206
-
207
- SendExtendedColor
208
- (
209
- 0x01 ,
210
- ext_color_data
211
- );
212
197
}
213
198
214
199
/* -------------------------------------------------------------------------------------------------*\
@@ -381,33 +366,6 @@ void HyperXAlloyFPSController::SendColor
381
366
hid_send_feature_report (dev, buf, 264 );
382
367
}
383
368
384
- void HyperXAlloyFPSController::SendExtendedColor
385
- (
386
- unsigned char profile,
387
- unsigned char * color_data
388
- )
389
- {
390
- unsigned char buf[264 ];
391
-
392
- /* -----------------------------------------------------*\
393
- | Zero out buffer |
394
- \*-----------------------------------------------------*/
395
- memset (buf, 0x00 , sizeof (buf));
396
-
397
- /* -----------------------------------------------------*\
398
- | Set up Color packet |
399
- \*-----------------------------------------------------*/
400
- buf[0x00 ] = 0x07 ;
401
- buf[0x01 ] = HYPERX_ALLOY_FPS_PACKET_ID_SET_COLOR;
402
- buf[0x02 ] = profile;
403
- buf[0x03 ] = HYPERX_ALLOY_FPS_COLOR_CHANNEL_EXTENDED;
404
-
405
- /* -----------------------------------------------------*\
406
- | Send packet |
407
- \*-----------------------------------------------------*/
408
- hid_send_feature_report (dev, buf, 264 );
409
- }
410
-
411
369
void HyperXAlloyFPSController::SendDirect
412
370
(
413
371
unsigned char color_channel,
@@ -441,30 +399,4 @@ void HyperXAlloyFPSController::SendDirect
441
399
| Send packet |
442
400
\*-----------------------------------------------------*/
443
401
hid_send_feature_report (dev, buf, 264 );
444
- }
445
-
446
- void HyperXAlloyFPSController::SendDirectExtended
447
- (
448
- unsigned char * color_data
449
- )
450
- {
451
- unsigned char buf[264 ];
452
-
453
- /* -----------------------------------------------------*\
454
- | Zero out buffer |
455
- \*-----------------------------------------------------*/
456
- memset (buf, 0x00 , sizeof (buf));
457
-
458
- /* -----------------------------------------------------*\
459
- | Set up Direct packet |
460
- \*-----------------------------------------------------*/
461
- buf[0x00 ] = 0x07 ;
462
- buf[0x01 ] = HYPERX_ALLOY_FPS_PACKET_ID_DIRECT;
463
- buf[0x02 ] = HYPERX_ALLOY_FPS_COLOR_CHANNEL_EXTENDED;
464
- buf[0x03 ] = 0xA0 ;
465
-
466
- /* -----------------------------------------------------*\
467
- | Send packet |
468
- \*-----------------------------------------------------*/
469
- hid_send_feature_report (dev, buf, 264 );
470
- }
402
+ }
0 commit comments