No "Cooldown" menu if heaters are off

This commit is contained in:
Scott Lahteine 2016-12-19 22:42:48 -08:00
parent 18ba31e9b5
commit eb68715b94

View File

@ -1390,7 +1390,12 @@ KeepDrawing:
// //
// Cooldown // Cooldown
// //
MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown); bool has_heat = false;
HOTEND_LOOP() if (thermalManager.target_temperature[e]) { has_heat = true; break; }
#if HAS_TEMP_BED
if (thermalManager.target_temperature_bed) has_heat = true;
#endif
if (has_heat) MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown);
// //
// BLTouch Self-Test and Reset // BLTouch Self-Test and Reset