Fixed a problem with syncbacked leds kept in the synced state forever

This commit is contained in:
DarthAffe committed 2018-06-06 20:47:05 +02:00
1 parent 9e44b8f9e5
commit 96184d1220
5 files changed
+43 -11

No files matched your search

@@ -114,7 +114,7 @@ namespace RGB.NET.Devices.Corsair
for (int i = 0; i < LedMapping.Count; i++)
{
_CorsairLedColor ledColor = (_CorsairLedColor)Marshal.PtrToStructure(readPtr, typeof(_CorsairLedColor));
this[(CorsairLedId)ledColor.ledId].Color = new Color(ledColor.r, ledColor.g, ledColor.b);
SetLedColorWithoutRequest(this[(CorsairLedId)ledColor.ledId], new Color(ledColor.r, ledColor.g, ledColor.b));
readPtr = new IntPtr(readPtr.ToInt64() + structSize);
}