Fix Iterator issue on Windows (#1450)

This commit is contained in:
LordGrey 2022-04-11 08:54:09 +02:00 committed by GitHub
parent addff6f7ef
commit 2388044a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -218,12 +218,13 @@ bool PriorityMuxer::setInput(int priority, const std::vector<ColorRgb>& ledColor
if (input.componentId == hyperion::COMP_COLOR)
{
activeChange = true;
if (!input.ledColors.empty() && !ledColors.empty())
{
//Only issue priority update, if first LED change as value in update is representing first LED only
if (input.ledColors.begin() != ledColors.begin())
if (input.ledColors.front() == ledColors.front())
{
activeChange = true;
activeChange = false;
}
}
}