Skip to content

Commit

Permalink
fix logitech index error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Sep 10, 2022
1 parent 593eca2 commit 8a8a0a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -144,7 +144,6 @@ protected override bool UpdateDevice(Dictionary<DeviceKeys, Color> keyColors, Do
LogitechGSDK.LogiLedSetLightingForTargetZone(DeviceType.Speaker, i, speakers);
}
}

if (!Global.Configuration.DevicesDisableKeyboard)
{
IsInitialized &= LogitechGSDK.LogiLedSetLightingFromBitmap(logitechBitmap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ public override void Shutdown()
IsInitialized = false;
}

private int count = 100;
protected override bool UpdateDevice(Dictionary<DK, Color> keyColors, DoWorkEventArgs e, bool forced = false)
{
if (!IsInitialized)
Expand Down

0 comments on commit 8a8a0a2

Please sign in to comment.