Use disable_all_heaters in M111

This commit is contained in:
Scott Lahteine 2015-07-06 22:04:43 -07:00 committed by Richard Wackerbarth
parent 15190d40df
commit 6b494c1535

View file

@ -3643,10 +3643,7 @@ inline void gcode_M111() {
//if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS); //if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS);
if (marlin_debug_flags & DEBUG_DRYRUN) { if (marlin_debug_flags & DEBUG_DRYRUN) {
SERIAL_ECHOLNPGM(MSG_DEBUG_DRYRUN); SERIAL_ECHOLNPGM(MSG_DEBUG_DRYRUN);
setTargetBed(0); disable_all_heaters();
for (int8_t cur_hotend = 0; cur_hotend < EXTRUDERS; ++cur_hotend) {
setTargetHotend(0, cur_hotend);
}
} }
SERIAL_EOL; SERIAL_EOL;
} }