From 72f63a4980908257c9fdc9dc9749c976d4d9d19c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 21 Feb 2018 19:25:50 -0600 Subject: [PATCH] Fix DOGM progress bar with LCD_SET_PROGRESS_MANUALLY --- Marlin/src/lcd/ultralcd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp index a5b82fcad6..5bf308d3cf 100644 --- a/Marlin/src/lcd/ultralcd.cpp +++ b/Marlin/src/lcd/ultralcd.cpp @@ -654,6 +654,12 @@ void lcd_status_screen() { ENCODER_RATE_MULTIPLY(false); #endif + #if ENABLED(LCD_SET_PROGRESS_MANUALLY) && (ENABLED(LCD_PROGRESS_BAR) || ENABLED(DOGLCD)) + // Progress bar % comes from SD when actively printing + if (IS_SD_PRINTING) + progress_bar_percent = card.percentDone(); + #endif + #if ENABLED(LCD_PROGRESS_BAR) // @@ -662,12 +668,6 @@ void lcd_status_screen() { // share the same line on the display. // - // Set current percentage from SD when actively printing - #if ENABLED(LCD_SET_PROGRESS_MANUALLY) - if (IS_SD_PRINTING) - progress_bar_percent = card.percentDone(); - #endif - millis_t ms = millis(); // If the message will blink rather than expire...