Browse Source

Fix DOGM progress bar with LCD_SET_PROGRESS_MANUALLY

pull/1/head
Scott Lahteine 6 years ago
parent
commit
72f63a4980
  1. 12
      Marlin/src/lcd/ultralcd.cpp

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

Loading…
Cancel
Save