@@ -460,18 +460,18 @@ void paintLogging()
460460 {
461461 lastLoggingIconUpdate = millis ();
462462
463- if (loggingIconDisplayed == 0 )
464- oled.drawIcon (64 - Logging_0_Width, 48 - Logging_0_Height, Logging_0_Width, Logging_0_Height, Logging_0, sizeof (Logging_0), true ); // Draw the icon
465- else if (loggingIconDisplayed == 1 )
466- oled.drawIcon (64 - Logging_1_Width, 48 - Logging_1_Height, Logging_1_Width, Logging_1_Height, Logging_1, sizeof (Logging_1), true ); // Draw the icon
467- else if (loggingIconDisplayed == 2 )
468- oled.drawIcon (64 - Logging_2_Width, 48 - Logging_2_Height, Logging_2_Width, Logging_2_Height, Logging_2, sizeof (Logging_2), true ); // Draw the icon
469- else if (loggingIconDisplayed == 3 )
470- oled.drawIcon (64 - Logging_3_Width, 48 - Logging_3_Height, Logging_3_Width, Logging_3_Height, Logging_3, sizeof (Logging_3), true ); // Draw the icon
471-
472463 loggingIconDisplayed++; // Goto next icon
473464 loggingIconDisplayed %= 4 ; // Wrap
474465 }
466+
467+ if (loggingIconDisplayed == 0 )
468+ oled.drawIcon (64 - Logging_0_Width, 48 - Logging_0_Height, Logging_0_Width, Logging_0_Height, Logging_0, sizeof (Logging_0), true ); // Draw the icon
469+ else if (loggingIconDisplayed == 1 )
470+ oled.drawIcon (64 - Logging_1_Width, 48 - Logging_1_Height, Logging_1_Width, Logging_1_Height, Logging_1, sizeof (Logging_1), true ); // Draw the icon
471+ else if (loggingIconDisplayed == 2 )
472+ oled.drawIcon (64 - Logging_2_Width, 48 - Logging_2_Height, Logging_2_Width, Logging_2_Height, Logging_2, sizeof (Logging_2), true ); // Draw the icon
473+ else if (loggingIconDisplayed == 3 )
474+ oled.drawIcon (64 - Logging_3_Width, 48 - Logging_3_Height, Logging_3_Width, Logging_3_Height, Logging_3, sizeof (Logging_3), true ); // Draw the icon
475475 }
476476 }
477477}
0 commit comments