|
@@ -877,11 +877,11 @@ void ST7920_Lite_Status_Screen::update_status_or_position(bool forceUpdate) {
|
877
|
877
|
|
878
|
878
|
void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) {
|
879
|
879
|
#if DISABLED(LCD_SET_PROGRESS_MANUALLY)
|
880
|
|
- uint8_t progress_bar_percent;
|
|
880
|
+ uint8_t progress_bar_percent = 0;
|
881
|
881
|
#endif
|
882
|
882
|
|
883
|
|
- // Set current percentage from SD when actively printing
|
884
|
|
- #if ENABLED(SDSUPPORT)
|
|
883
|
+ #if ENABLED(LCD_SET_PROGRESS_MANUALLY) && ENABLED(SDSUPPORT) && (ENABLED(LCD_PROGRESS_BAR) || ENABLED(DOGLCD))
|
|
884
|
+ // Progress bar % comes from SD when actively printing
|
885
|
885
|
if (IS_SD_PRINTING) progress_bar_percent = card.percentDone();
|
886
|
886
|
#endif
|
887
|
887
|
|