From 44739c5198da75b45ca77851678efb9c88e44f58 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Mon, 21 Feb 2022 22:12:13 +0100 Subject: [PATCH] Merge effectChanged and colorChanged to stateChanged --- .../usermod_v2_rotary_encoder_ui_ALT.h | 10 +++++----- wled00/json.cpp | 10 +++------- wled00/led.cpp | 19 +++++++++---------- wled00/set.cpp | 8 ++++---- wled00/udp.cpp | 3 +-- wled00/wled.h | 5 ++--- 6 files changed, 24 insertions(+), 31 deletions(-) diff --git a/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h b/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h index b6e5ee70..5954eff7 100644 --- a/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h +++ b/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h @@ -501,7 +501,7 @@ public: #endif effectCurrentIndex = max(min((increase ? effectCurrentIndex+1 : effectCurrentIndex-1), strip.getModeCount()-1), 0); effectCurrent = modes_alpha_indexes[effectCurrentIndex]; - effectChanged = true; + stateChanged = true; if (applyToAll) { for (byte i=0; iupdateRedrawTime(); #endif effectSpeed = max(min((increase ? effectSpeed+fadeAmount : effectSpeed-fadeAmount), 255), 0); - effectChanged = true; + stateChanged = true; if (applyToAll) { for (byte i=0; iupdateRedrawTime(); #endif effectIntensity = max(min((increase ? effectIntensity+fadeAmount : effectIntensity-fadeAmount), 255), 0); - effectChanged = true; + stateChanged = true; if (applyToAll) { for (byte i=0; i