1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Fix progress bar on DOGM with LCD_SET_PROGRESS_MANUALLY

This commit is contained in:
Scott Lahteine 2018-02-21 19:43:45 -06:00
parent 126a80ea83
commit e8f9473be2

View File

@ -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...