From 87b55656790b05a6fe9d9f7f1aec347b88bc18ae Mon Sep 17 00:00:00 2001 From: TripleWhy Date: Sat, 4 Nov 2023 16:12:10 +0100 Subject: [PATCH] Minor simplification --- wled00/FX.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 2e5689a9..53c2c899 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -2635,8 +2635,7 @@ uint16_t mode_halloween_eyes() if (!SEGMENT.check2) SEGMENT.fill(SEGCOLOR(1)); //fill background data.state = static_cast(data.state % eyeState::count); - uint16_t duration = data.duration; - duration = max(uint16_t{1u}, duration); + uint16_t duration = max(uint16_t{1u}, data.duration); const uint32_t elapsedTime = strip.now - data.startTime; switch (data.state) {