File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Controllers/CoolerMasterController/CMARGBController Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ RGBController_CMARGBController::RGBController_CMARGBController(CMARGBController*
213213 {
214214 if (modes[mode_idx].value == port_mode)
215215 {
216- active_mode = mode_idx;
216+ active_mode = ( int ) mode_idx;
217217
218218 if ((modes[mode_idx].flags & MODE_FLAG_HAS_MODE_SPECIFIC_COLOR) && (modes[mode_idx].colors .size () > 0 ))
219219 {
@@ -342,7 +342,7 @@ void RGBController_CMARGBController::DeviceUpdateLEDs()
342342{
343343 for (std::size_t zone_idx = 0 ; zone_idx < zones.size (); zone_idx++)
344344 {
345- UpdateZoneLEDs (zone_idx);
345+ UpdateZoneLEDs (( int ) zone_idx);
346346 }
347347}
348348
@@ -427,7 +427,7 @@ void RGBController_CMARGBController::DeviceUpdateMode()
427427 {
428428 controller->SetPortMode
429429 (
430- zone_idx,
430+ ( unsigned char ) zone_idx,
431431 (zone_idx == 4 ) ? rgb_mode : modes[active_mode].value ,
432432 modes[active_mode].speed ,
433433 modes[active_mode].brightness ,
You can’t perform that action at this time.
0 commit comments