|
@@ -806,8 +806,10 @@ static void lcd_implementation_status_screen() {
|
806
|
806
|
|
807
|
807
|
// Draw the progress bar if the message has shown long enough
|
808
|
808
|
// or if there is no message set.
|
809
|
|
- if (card.isFileOpen() && (ELAPSED(millis(), progress_bar_ms + PROGRESS_BAR_MSG_TIME) || !lcd_status_message[0]))
|
810
|
|
- return lcd_draw_progress_bar(card.percentDone());
|
|
809
|
+ if (card.isFileOpen() && (ELAPSED(millis(), progress_bar_ms + PROGRESS_BAR_MSG_TIME) || !lcd_status_message[0])) {
|
|
810
|
+ const uint8_t percent = card.percentDone();
|
|
811
|
+ if (percent) return lcd_draw_progress_bar(percent);
|
|
812
|
+ }
|
811
|
813
|
|
812
|
814
|
#elif ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT)
|
813
|
815
|
|