Fix warnings in RGBController_HYTEKeyboard.cpp
This commit is contained in:
parent
224d75e0e8
commit
01d9655781
1 changed files with 13 additions and 4 deletions
|
|
@ -148,9 +148,11 @@ void RGBController_HYTEKeyboard::SetupZones()
|
|||
SetupColors();
|
||||
}
|
||||
|
||||
void RGBController_HYTEKeyboard::ResizeZone(int zone, int new_size)
|
||||
void RGBController_HYTEKeyboard::ResizeZone(int /*zone*/, int /*new_size*/)
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| This device does not support resizing zones |
|
||||
\*---------------------------------------------------------*/
|
||||
}
|
||||
|
||||
void RGBController_HYTEKeyboard::DeviceUpdateLEDs()
|
||||
|
|
@ -182,10 +184,17 @@ void RGBController_HYTEKeyboard::UpdateZoneLEDs(int zone)
|
|||
|
||||
void RGBController_HYTEKeyboard::UpdateSingleLED(int led)
|
||||
{
|
||||
|
||||
if(led < zones[0].leds_count)
|
||||
{
|
||||
UpdateZoneLEDs(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
UpdateZoneLEDs(1);
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_HYTEKeyboard::DeviceUpdateMode()
|
||||
{
|
||||
|
||||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue