From fcceb981914662d9ac7b11087fb42f3a2dfbe2ee Mon Sep 17 00:00:00 2001 From: AnHardt Date: Mon, 9 Nov 2015 13:21:47 +0100 Subject: [PATCH] Unglobalize no_wait_for_cooling --- Marlin/Marlin_main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 1de6a9fec..8e53c2aa6 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -288,7 +288,6 @@ static millis_t stepper_inactive_time = DEFAULT_STEPPER_DEACTIVE_TIME * 1000L; millis_t print_job_start_ms = 0; ///< Print job start time millis_t print_job_stop_ms = 0; ///< Print job stop time static uint8_t target_extruder; -bool no_wait_for_cooling = true; bool target_direction; #if ENABLED(AUTO_BED_LEVELING_FEATURE) @@ -3890,6 +3889,8 @@ inline void gcode_M105() { * M109: Wait for extruder(s) to reach temperature */ inline void gcode_M109() { + bool no_wait_for_cooling = true; + if (setTargetedHotend(109)) return; if (marlin_debug_flags & DEBUG_DRYRUN) return; @@ -3976,6 +3977,8 @@ inline void gcode_M109() { * Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling */ inline void gcode_M190() { + bool no_wait_for_cooling = true; + if (marlin_debug_flags & DEBUG_DRYRUN) return; LCD_MESSAGEPGM(MSG_BED_HEATING);