From 8a8a0a2cdad112b532c86f01ad189cf72f0f8490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ayta=C3=A7=20Kayadelen?= Date: Sat, 10 Sep 2022 16:42:50 +0300 Subject: [PATCH] fix logitech index error --- .../Project-Aurora/Devices/Logitech/LogitechDevice.cs | 5 ++--- .../Project-Aurora/Devices/OpenRGB/OpenRGBDevice.cs | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Project-Aurora/Project-Aurora/Devices/Logitech/LogitechDevice.cs b/Project-Aurora/Project-Aurora/Devices/Logitech/LogitechDevice.cs index f83e9edd4..138109a15 100755 --- a/Project-Aurora/Project-Aurora/Devices/Logitech/LogitechDevice.cs +++ b/Project-Aurora/Project-Aurora/Devices/Logitech/LogitechDevice.cs @@ -19,8 +19,8 @@ public class LogitechDevice : DefaultDevice private readonly byte[] logitechBitmap = new byte[LogitechGSDK.LOGI_LED_BITMAP_SIZE]; private Color speakers; private Color mousepad; - private readonly Color[] mouse = new Color[2]; - private readonly Color[] headset = new Color[2]; + private readonly Color[] mouse = new Color[3]; + private readonly Color[] headset = new Color[3]; private DeviceKeys genericKey; public override bool Initialize() @@ -144,7 +144,6 @@ protected override bool UpdateDevice(Dictionary keyColors, Do LogitechGSDK.LogiLedSetLightingForTargetZone(DeviceType.Speaker, i, speakers); } } - if (!Global.Configuration.DevicesDisableKeyboard) { IsInitialized &= LogitechGSDK.LogiLedSetLightingFromBitmap(logitechBitmap); diff --git a/Project-Aurora/Project-Aurora/Devices/OpenRGB/OpenRGBDevice.cs b/Project-Aurora/Project-Aurora/Devices/OpenRGB/OpenRGBDevice.cs index 860f08f37..2c5e22b7a 100644 --- a/Project-Aurora/Project-Aurora/Devices/OpenRGB/OpenRGBDevice.cs +++ b/Project-Aurora/Project-Aurora/Devices/OpenRGB/OpenRGBDevice.cs @@ -157,7 +157,6 @@ public override void Shutdown() IsInitialized = false; } - private int count = 100; protected override bool UpdateDevice(Dictionary keyColors, DoWorkEventArgs e, bool forced = false) { if (!IsInitialized)