Browse Source

🐛 Fix SHOW_REMAINING_TIME option for JyersUI (#22999)

tome9111991 2 years ago
parent
commit
de3c563a99
No account linked to committer's email address
2 changed files with 5 additions and 1 deletions
  1. 1
    1
      Marlin/Configuration_adv.h
  2. 4
    0
      Marlin/src/inc/Conditionals_LCD.h

+ 1
- 1
Marlin/Configuration_adv.h View File

@@ -1306,7 +1306,7 @@
1306 1306
 
1307 1307
 // LCD Print Progress options
1308 1308
 #if EITHER(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
1309
-  #if ANY(HAS_MARLINUI_U8GLIB, EXTENSIBLE_UI, HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL, IS_DWIN_MARLINUI)
1309
+  #if CAN_SHOW_REMAINING_TIME
1310 1310
     //#define SHOW_REMAINING_TIME         // Display estimated time to completion
1311 1311
     #if ENABLED(SHOW_REMAINING_TIME)
1312 1312
       //#define USE_M73_REMAINING_TIME    // Use remaining time from M73 command instead of estimation

+ 4
- 0
Marlin/src/inc/Conditionals_LCD.h View File

@@ -542,6 +542,10 @@
542 542
   #define HAS_LCD_MENU 1
543 543
 #endif
544 544
 
545
+#if ANY(HAS_MARLINUI_U8GLIB, EXTENSIBLE_UI, HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL, IS_DWIN_MARLINUI, DWIN_CREALITY_LCD_JYERSUI)
546
+  #define CAN_SHOW_REMAINING_TIME 1
547
+#endif
548
+
545 549
 #if HAS_MARLINUI_U8GLIB
546 550
   #ifndef LCD_PIXEL_WIDTH
547 551
     #define LCD_PIXEL_WIDTH 128

Loading…
Cancel
Save