Skip to content

Commit

Permalink
Merge pull request #348 from DarthAffe/SDK/Corsair
Browse files Browse the repository at this point in the history
Fixed an exception when multiple invalid leds are present in custom c…
  • Loading branch information
DarthAffe authored Aug 19, 2023
2 parents d070f0b + 1f0b1b0 commit 3d9706a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ protected override void InitializeLayout()
continue;
}

if (ledPosition.LedId == CorsairLedId.Invalid) continue;

Mapping.Add(ledId, ledPosition.LedId);

Rectangle rectangle = ledPosition.ToRectangle();
Expand Down

0 comments on commit 3d9706a

Please sign in to comment.