Fix warnings in RGBController_PalitGPU.cpp

This commit is contained in:
Adam Honse 2023-05-24 11:34:39 -05:00
parent 77eb0fc005
commit 577747e9fd

View file

@ -95,16 +95,17 @@ void RGBController_PalitGPU::UpdateSingleLED(int /*led*/)
void RGBController_PalitGPU::DeviceUpdateMode()
{
RGBColor color = colors[0];
unsigned char r = RGBGetRValue(color);
unsigned char g = RGBGetGValue(color);
unsigned char b = RGBGetBValue(color);
unsigned char speed, brightness;
unsigned char r = RGBGetRValue(color);
unsigned char g = RGBGetGValue(color);
unsigned char b = RGBGetBValue(color);
switch(modes[active_mode].value)
{
case PALIT_GPU_MODE_DIRECT:
controller->SetDirect(r, g, b);
break;
default:
break;
break;
}
}