From 6b494c1535a41b09b345281a1f80cd734ecddd88 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 6 Jul 2015 22:04:43 -0700 Subject: [PATCH] Use disable_all_heaters in M111 --- Marlin/Marlin_main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 38b1ac39a..51dd1d8ae 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -3643,10 +3643,7 @@ inline void gcode_M111() { //if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS); if (marlin_debug_flags & DEBUG_DRYRUN) { SERIAL_ECHOLNPGM(MSG_DEBUG_DRYRUN); - setTargetBed(0); - for (int8_t cur_hotend = 0; cur_hotend < EXTRUDERS; ++cur_hotend) { - setTargetHotend(0, cur_hotend); - } + disable_all_heaters(); } SERIAL_EOL; }