From 2388044a9314d798ba2c670dc398f75ed78a6030 Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Mon, 11 Apr 2022 08:54:09 +0200 Subject: [PATCH] Fix Iterator issue on Windows (#1450) --- libsrc/hyperion/PriorityMuxer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/hyperion/PriorityMuxer.cpp b/libsrc/hyperion/PriorityMuxer.cpp index bfe16dfd..48fc54f5 100644 --- a/libsrc/hyperion/PriorityMuxer.cpp +++ b/libsrc/hyperion/PriorityMuxer.cpp @@ -218,12 +218,13 @@ bool PriorityMuxer::setInput(int priority, const std::vector& 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; } } }