Skip to content

Commit 16fc568

Browse files
committed
Fix exception when using Copy LedCountHandling
1 parent a002e8d commit 16fc568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/TTController.Service/TTService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void ApplyConfig(IDictionary<PortIdentifier, List<LedColor>> colorMap)
391391
break;
392392
case LedCountHandling.Copy:
393393
while (config.LedCount > colors.Count)
394-
colors.AddRange(colors.Take(config.LedCount - colors.Count));
394+
colors.AddRange(colors.Take(config.LedCount - colors.Count).ToList());
395395
break;
396396
case LedCountHandling.DoNothing:
397397
default:

0 commit comments

Comments
 (0)