mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Fixed an exception when multiple invalid leds are present in custom corsair devices
This commit is contained in:
parent
d070f0bbcb
commit
1f0b1b0774
@ -53,6 +53,8 @@ public class CorsairCustomRGBDevice : CorsairRGBDevice<CorsairCustomRGBDeviceInf
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ledPosition.LedId == CorsairLedId.Invalid) continue;
|
||||||
|
|
||||||
Mapping.Add(ledId, ledPosition.LedId);
|
Mapping.Add(ledId, ledPosition.LedId);
|
||||||
|
|
||||||
Rectangle rectangle = ledPosition.ToRectangle();
|
Rectangle rectangle = ledPosition.ToRectangle();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user