mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Fix progress bar on DOGM with LCD_SET_PROGRESS_MANUALLY
This commit is contained in:
parent
126a80ea83
commit
e8f9473be2
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user