From cf01a8dc46f47c2f5b08848977b26e75d0c77023 Mon Sep 17 00:00:00 2001 From: Daniel Dreibrodt Date: Thu, 22 Oct 2020 21:08:54 +0200 Subject: [PATCH] Patriot Viper: Limit to one zone, as slots cannot be controlled separately --- .../RGBController_PatriotViper.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Controllers/PatriotViperController/RGBController_PatriotViper.cpp b/Controllers/PatriotViperController/RGBController_PatriotViper.cpp index ac3915e9..c108cb79 100644 --- a/Controllers/PatriotViperController/RGBController_PatriotViper.cpp +++ b/Controllers/PatriotViperController/RGBController_PatriotViper.cpp @@ -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 |