mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48: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;
|
||||
}
|
||||
|
||||
if (ledPosition.LedId == CorsairLedId.Invalid) continue;
|
||||
|
||||
Mapping.Add(ledId, ledPosition.LedId);
|
||||
|
||||
Rectangle rectangle = ledPosition.ToRectangle();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user