|
@ -876,11 +876,13 @@ void ST7920_Lite_Status_Screen::update_status_or_position(bool forceUpdate) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) { |
|
|
void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) { |
|
|
|
|
|
#if ENABLED(LCD_SET_PROGRESS_MANUALLY) || ENABLED(SDSUPPORT) |
|
|
|
|
|
|
|
|
#if DISABLED(LCD_SET_PROGRESS_MANUALLY) |
|
|
#if DISABLED(LCD_SET_PROGRESS_MANUALLY) |
|
|
uint8_t progress_bar_percent = 0; |
|
|
uint8_t progress_bar_percent; //=0
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(LCD_SET_PROGRESS_MANUALLY) && ENABLED(SDSUPPORT) && (ENABLED(LCD_PROGRESS_BAR) || ENABLED(DOGLCD)) |
|
|
#if ENABLED(SDSUPPORT) |
|
|
// Progress bar % comes from SD when actively printing
|
|
|
// Progress bar % comes from SD when actively printing
|
|
|
if (IS_SD_PRINTING) progress_bar_percent = card.percentDone(); |
|
|
if (IS_SD_PRINTING) progress_bar_percent = card.percentDone(); |
|
|
#endif |
|
|
#endif |
|
@ -894,6 +896,12 @@ void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) { |
|
|
last_progress = progress_bar_percent; |
|
|
last_progress = progress_bar_percent; |
|
|
|
|
|
|
|
|
draw_progress_bar(progress_bar_percent); |
|
|
draw_progress_bar(progress_bar_percent); |
|
|
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
UNUSED(forceUpdate); |
|
|
|
|
|
|
|
|
|
|
|
#endif // LCD_SET_PROGRESS_MANUALLY || SDSUPPORT
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ST7920_Lite_Status_Screen::update(const bool forceUpdate) { |
|
|
void ST7920_Lite_Status_Screen::update(const bool forceUpdate) { |
|
|