From 7e503e823eb76b46e5cc6d06ef7f6dc39f9ed4a8 Mon Sep 17 00:00:00 2001 From: eshifri <46511024+eshifri@users.noreply.github.com> Date: Sat, 31 Dec 2022 17:22:58 -0800 Subject: [PATCH] fix(color): 6POS on main view not always redrawn when changed (#2947) --- radio/src/gui/colorlcd/layouts/sliders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/layouts/sliders.cpp b/radio/src/gui/colorlcd/layouts/sliders.cpp index e3db43a3c..9da4d4fa6 100644 --- a/radio/src/gui/colorlcd/layouts/sliders.cpp +++ b/radio/src/gui/colorlcd/layouts/sliders.cpp @@ -105,7 +105,7 @@ void MainView6POS::checkEvents() { Window::checkEvents(); #if NUM_XPOTS > 0 // prevent compiler warning - int16_t newValue = 1 + (potsPos[idx] & 0x0f); + int16_t newValue = (potsPos[idx] & 0x0f); if (value != newValue) { value = newValue; invalidate();