瀏覽代碼

Fix DOGM progress bar with LCD_SET_PROGRESS_MANUALLY

Scott Lahteine 7 年之前
父節點
當前提交
72f63a4980
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. 6
    6
      Marlin/src/lcd/ultralcd.cpp

+ 6
- 6
Marlin/src/lcd/ultralcd.cpp 查看文件

@@ -654,6 +654,12 @@ void lcd_status_screen() {
654 654
     ENCODER_RATE_MULTIPLY(false);
655 655
   #endif
656 656
 
657
+  #if ENABLED(LCD_SET_PROGRESS_MANUALLY) && (ENABLED(LCD_PROGRESS_BAR) || ENABLED(DOGLCD))
658
+    // Progress bar % comes from SD when actively printing
659
+    if (IS_SD_PRINTING)
660
+      progress_bar_percent = card.percentDone();
661
+  #endif
662
+
657 663
   #if ENABLED(LCD_PROGRESS_BAR)
658 664
 
659 665
     //
@@ -662,12 +668,6 @@ void lcd_status_screen() {
662 668
     // share the same line on the display.
663 669
     //
664 670
 
665
-    // Set current percentage from SD when actively printing
666
-    #if ENABLED(LCD_SET_PROGRESS_MANUALLY)
667
-      if (IS_SD_PRINTING)
668
-        progress_bar_percent = card.percentDone();
669
-    #endif
670
-
671 671
     millis_t ms = millis();
672 672
 
673 673
     // If the message will blink rather than expire...

Loading…
取消
儲存