From ec864a25e0e63ae47b0af375e497e11e9f0b23b0 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Wed, 18 Mar 2026 13:04:02 +0100 Subject: [PATCH] Fix const --- src/components/themes/BaseTheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/themes/BaseTheme.cpp b/src/components/themes/BaseTheme.cpp index 765343c4..76bc6316 100644 --- a/src/components/themes/BaseTheme.cpp +++ b/src/components/themes/BaseTheme.cpp @@ -37,7 +37,7 @@ void drawBatteryIcon(const GfxRenderer& renderer, int x, int y, int battWidth, i const bool charging = gpio.isUsbConnected(); // The +1 is to round up, so that we always fill at least one pixel - constexpr int maxFillWidth = battWidth - 5; + const int maxFillWidth = battWidth - 5; int filledWidth = percentage * maxFillWidth / 100 + 1; if (filledWidth > maxFillWidth) { filledWidth = maxFillWidth;