Browse Source

No "Cooldown" menu if heaters are off

Scott Lahteine 8 years ago
parent
commit
eb68715b94
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Marlin/ultralcd.cpp

+ 6
- 1
Marlin/ultralcd.cpp View File

@@ -1390,7 +1390,12 @@ KeepDrawing:
1390 1390
     //
1391 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 1401
     // BLTouch Self-Test and Reset

Loading…
Cancel
Save