@@ -68,7 +68,7 @@ void IRAM_ATTR handleButtonPress() {
6868
6969 // Debounce: If the current press is too close to the last one, ignore it
7070 if (currentTime - lastPressTime > 50 ) {
71- pressCount++; // Count the button press
71+ pressCount++; // Count the button press
7272
7373 // Check if this is the second press within the double-press interval
7474 if (pressCount == 2 && (currentTime - lastPressTime <= doublePressInterval)) {
@@ -112,12 +112,12 @@ void displayStatusBar(int progress) {
112112 display.setCursor (22 , 22 );
113113 display.println (" hochgeladen!" );
114114
115- display.fillRect (0 , SCREEN_HEIGHT - 24 , SCREEN_WIDTH- 4 , 8 , BLACK); // Clear status bar area
116- display.drawRect (0 , SCREEN_HEIGHT - 24 , SCREEN_WIDTH- 4 , 8 , WHITE); // Draw border
117- int filledWidth = (progress * SCREEN_WIDTH- 4 ) / 100 ; // Calculate progress width
118- display.fillRect (1 , SCREEN_HEIGHT - 23 , filledWidth- 4 , 6 , WHITE); // Fill progress bar
115+ display.fillRect (0 , SCREEN_HEIGHT - 24 , SCREEN_WIDTH - 4 , 8 , BLACK); // Clear status bar area
116+ display.drawRect (0 , SCREEN_HEIGHT - 24 , SCREEN_WIDTH - 4 , 8 , WHITE); // Draw border
117+ int filledWidth = (progress * SCREEN_WIDTH - 4 ) / 100 ; // Calculate progress width
118+ display.fillRect (1 , SCREEN_HEIGHT - 23 , filledWidth - 4 , 6 , WHITE); // Fill progress bar
119119
120- display.setCursor ((SCREEN_WIDTH/ 2 )- 12 , SCREEN_HEIGHT - 10 );
120+ display.setCursor ((SCREEN_WIDTH / 2 ) - 12 , SCREEN_HEIGHT - 10 );
121121 display.setTextSize (1 );
122122 display.setTextColor (WHITE, BLACK);
123123 display.print (progress);
@@ -135,9 +135,9 @@ void displayWelcomeScreen() {
135135 display.setCursor (40 , 13 );
136136 display.setTextSize (1 );
137137 display.setTextColor (WHITE, BLACK);
138- display.println (" Verbinde dich" ); // "Connect"
138+ display.println (" Verbinde dich" ); // "Connect"
139139 display.setCursor (60 , 27 );
140- display.println (" mit:" ); // "with"
140+ display.println (" mit:" ); // "with"
141141
142142 // Display SSID
143143 display.setCursor (40 , 43 );
@@ -157,9 +157,9 @@ void displaySuccessScreen() {
157157 display.setCursor (48 , 22 );
158158 display.setTextSize (1 );
159159 display.setTextColor (WHITE, BLACK);
160- display.println (" Erfolgreich" ); // "Successfully"
160+ display.println (" Erfolgreich" ); // "Successfully"
161161 display.setCursor (48 , 36 );
162- display.println (" hochgeladen!" ); // "uploaded!"
162+ display.println (" hochgeladen!" ); // "uploaded!"
163163
164164 display.display ();
165165}
@@ -267,7 +267,7 @@ void loop() {
267267#endif
268268
269269 if (doublePressDetected) {
270- Serial.println (" Doppeldruck erkannt!" ); // "Double press detected!"
270+ Serial.println (" Doppeldruck erkannt!" ); // "Double press detected!"
271271 setBootPartitionToOTA0 ();
272272#ifdef DISPLAY_ENABLED
273273 display.setCursor (0 , 0 );
0 commit comments