Fix DOGM progress bar with LCD_SET_PROGRESS_MANUALLY
This commit is contained in:
parent
343c17d5b3
commit
72f63a4980
@ -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…
Reference in New Issue
Block a user