From c8ac653b4f76527ce10397e2c7970864732ac262 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sun, 30 Apr 2023 15:54:16 +0200 Subject: [PATCH] Re order pots on 2 lines dispay --- radio/src/gui/128x64/view_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/128x64/view_main.cpp b/radio/src/gui/128x64/view_main.cpp index 6c3d78d6c..9ff2669e7 100644 --- a/radio/src/gui/128x64/view_main.cpp +++ b/radio/src/gui/128x64/view_main.cpp @@ -98,7 +98,7 @@ void drawPotsBars() for (uint8_t i = 0; i < max_pots; i++) { if (IS_POT_SLIDER_AVAILABLE(i)) { coord_t x = xstart + (i % cols) * 5; - coord_t y = i >= cols ? (LCD_H - 8 - BAR_HEIGHT / 2) : (LCD_H - 8); + coord_t y = lines == 1 ? (LCD_H - 8) : i >= cols ? (LCD_H - 8) : (LCD_H - 8 - BAR_HEIGHT / 2); auto v = calibratedAnalogs[offset + i] + RESX; uint8_t len = (v * BAR_HEIGHT / (RESX * 2 * lines)) + 1l; V_BAR(x, y, len);