From 305f66ad3df85e3c36d6504e409023ce55045841 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sun, 14 Jun 2020 14:14:12 -0500 Subject: [PATCH] Treat the LED strip on the Razer Diamondback as a single zone --- RGBController/OpenRazerDevices.h | 40 +++++++------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/RGBController/OpenRazerDevices.h b/RGBController/OpenRazerDevices.h index c81c1f831..1c7199696 100644 --- a/RGBController/OpenRazerDevices.h +++ b/RGBController/OpenRazerDevices.h @@ -1317,17 +1317,9 @@ static const razer_device deathadder_elite_device = /*-------------------------------------------------------------*\ | Razer Diamondback Chroma | | | -| Zone "Right" | +| Zone "LED Strip" | | Linear | -| 7 LEDs | -| | -| Zone "Bottom" | -| Linear | -| 5 LEDs | -| | -| Zone "Left" | -| Linear | -| 7 LEDs | +| 19 LEDs | | | | Zone "Logo" | | Single | @@ -1337,28 +1329,12 @@ static const razer_device deathadder_elite_device = | Single | | 1 LED | \*-------------------------------------------------------------*/ -static const razer_zone diamondback_chroma_right_zone = +static const razer_zone diamondback_chroma_led_strip_zone = { - "Right LED Strip", + "LED Strip", ZONE_TYPE_LINEAR, 1, - 7 -}; - -static const razer_zone diamondback_chroma_bottom_zone = -{ - "Bottom LED Strip", - ZONE_TYPE_LINEAR, - 1, - 5 -}; - -static const razer_zone diamondback_chroma_left_zone = -{ - "Left LED Strip", - ZONE_TYPE_LINEAR, - 1, - 7 + 19 }; static const razer_zone diamondback_chroma_logo_zone = @@ -1385,11 +1361,11 @@ static const razer_device diamondback_chroma_device = 1, 21, { - &diamondback_chroma_right_zone, - &diamondback_chroma_bottom_zone, - &diamondback_chroma_left_zone, + &diamondback_chroma_led_strip_zone, &diamondback_chroma_logo_zone, &diamondback_chroma_scroll_wheel_zone, + NULL, + NULL, NULL } };