1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
3d9706ad0e
Merge pull request #348 from DarthAffe/SDK/Corsair
Fixed an exception when multiple invalid leds are present in custom c…
2023-08-19 19:58:25 +02:00
1f0b1b0774 Fixed an exception when multiple invalid leds are present in custom corsair devices 2023-08-17 23:22:33 +02:00

View File

@ -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();