Browse Source

🚸 Up to 10 Preheat Constants (#24636)

Keith Bennett 2 years ago
parent
commit
ace358327d
No account linked to committer's email address
2 changed files with 10 additions and 2 deletions
  1. 1
    1
      Marlin/Configuration.h
  2. 9
    1
      Marlin/src/inc/Conditionals_post.h

+ 1
- 1
Marlin/Configuration.h View File

@@ -2205,7 +2205,7 @@
2205 2205
 // @section temperature
2206 2206
 
2207 2207
 //
2208
-// Preheat Constants - Up to 6 are supported without changes
2208
+// Preheat Constants - Up to 10 are supported without changes
2209 2209
 //
2210 2210
 #define PREHEAT_1_LABEL       "PLA"
2211 2211
 #define PREHEAT_1_TEMP_HOTEND 180

+ 9
- 1
Marlin/src/inc/Conditionals_post.h View File

@@ -3306,7 +3306,15 @@
3306 3306
 #endif
3307 3307
 
3308 3308
 #if HAS_TEMPERATURE && ANY(HAS_MARLINUI_MENU, HAS_DWIN_E3V2, HAS_DGUS_LCD_CLASSIC)
3309
-  #ifdef PREHEAT_6_LABEL
3309
+  #ifdef PREHEAT_10_LABEL
3310
+    #define PREHEAT_COUNT 10
3311
+  #elif defined(PREHEAT_9_LABEL)
3312
+    #define PREHEAT_COUNT 9
3313
+  #elif defined(PREHEAT_8_LABEL)
3314
+    #define PREHEAT_COUNT 8
3315
+  #elif defined(PREHEAT_7_LABEL)
3316
+    #define PREHEAT_COUNT 7
3317
+  #elif defined(PREHEAT_6_LABEL)
3310 3318
     #define PREHEAT_COUNT 6
3311 3319
   #elif defined(PREHEAT_5_LABEL)
3312 3320
     #define PREHEAT_COUNT 5

Loading…
Cancel
Save