From e8f9473be24a8c65e407e5f295f176c4f51f3bef Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 21 Feb 2018 19:43:45 -0600 Subject: [PATCH] Fix progress bar on DOGM with LCD_SET_PROGRESS_MANUALLY --- Marlin/ultralcd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 488479007..202381cc5 100644 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -642,6 +642,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) // @@ -650,12 +656,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...