Patriot Viper: Limit to one zone, as slots cannot be controlled separately

This commit is contained in:
Daniel Dreibrodt 2020-10-22 21:08:54 +02:00 committed by Adam Honse
parent b7b2d0c1df
commit cf01a8dc46

View file

@ -106,17 +106,14 @@ void RGBController_PatriotViper::SetupZones()
/*---------------------------------------------------------*\
| Set up zones |
\*---------------------------------------------------------*/
for(unsigned int slot = 0; slot < viper->GetSlotCount(); slot++)
{
zone* new_zone = new zone;
new_zone->name = "Patriot Viper RGB";
new_zone->type = ZONE_TYPE_LINEAR;
new_zone->leds_min = 5;
new_zone->leds_max = 5;
new_zone->leds_count = 5;
new_zone->matrix_map = NULL;
zones.push_back(*new_zone);
}
zone* new_zone = new zone;
new_zone->name = "Patriot Viper RGB";
new_zone->type = ZONE_TYPE_LINEAR;
new_zone->leds_min = 5;
new_zone->leds_max = 5;
new_zone->leds_count = 5;
new_zone->matrix_map = NULL;
zones.push_back(*new_zone);
/*---------------------------------------------------------*\
| Set up LEDs |