Fix const

This commit is contained in:
jpirnay
2026-03-18 13:04:02 +01:00
parent ce6676d211
commit ec864a25e0
+1 -1
View File
@@ -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;