Skip to content

Commit 7675ada

Browse files
author
Eric Thieme-Garmann
committed
small adjustment to loading progress
1 parent c2f68ba commit 7675ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variants/sensebox_mcu_esp32s2/APOTA.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void displayStatusBar(int progress) {
130130
display.fillRect(0, SCREEN_HEIGHT - 24, SCREEN_WIDTH-4, 8, BLACK); // Clear status bar area
131131
display.drawRect(0, SCREEN_HEIGHT - 24, SCREEN_WIDTH-4, 8, WHITE); // Draw border
132132
int filledWidth = (progress * SCREEN_WIDTH-4) / 100; // Calculate progress width
133-
display.fillRect(1, SCREEN_HEIGHT - 23, filledWidth, 6, WHITE); // Fill progress bar
133+
display.fillRect(1, SCREEN_HEIGHT - 23, filledWidth-4, 6, WHITE); // Fill progress bar
134134

135135
display.setCursor((SCREEN_WIDTH/2)-12, SCREEN_HEIGHT - 10);
136136
display.setTextSize(1);

0 commit comments

Comments
 (0)