Quellcode durchsuchen

No "Cooldown" menu if heaters are off

Scott Lahteine vor 8 Jahren
Ursprung
Commit
eb68715b94
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6
    1
      Marlin/ultralcd.cpp

+ 6
- 1
Marlin/ultralcd.cpp Datei anzeigen

1390
     //
1390
     //
1391
     // Cooldown
1391
     // Cooldown
1392
     //
1392
     //
1393
-    MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown);
1393
+    bool has_heat = false;
1394
+    HOTEND_LOOP() if (thermalManager.target_temperature[e]) { has_heat = true; break; }
1395
+    #if HAS_TEMP_BED
1396
+      if (thermalManager.target_temperature_bed) has_heat = true;
1397
+    #endif
1398
+    if (has_heat) MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown);
1394
 
1399
 
1395
     //
1400
     //
1396
     // BLTouch Self-Test and Reset
1401
     // BLTouch Self-Test and Reset

Laden…
Abbrechen
Speichern