From eb68715b946d17217583629b2d60eb5c909a0793 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 19 Dec 2016 22:42:48 -0800 Subject: [PATCH] No "Cooldown" menu if heaters are off --- Marlin/ultralcd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index d8b26b579..dd975b5ca 100755 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -1390,7 +1390,12 @@ KeepDrawing: // // 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