Преглед изворни кода

Use disable_all_heaters in M111

Scott Lahteine пре 10 година
родитељ
комит
6b494c1535
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1
    4
      Marlin/Marlin_main.cpp

+ 1
- 4
Marlin/Marlin_main.cpp Прегледај датотеку

@@ -3643,10 +3643,7 @@ inline void gcode_M111() {
3643 3643
   //if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS);
3644 3644
   if (marlin_debug_flags & DEBUG_DRYRUN) {
3645 3645
     SERIAL_ECHOLNPGM(MSG_DEBUG_DRYRUN);
3646
-    setTargetBed(0);
3647
-    for (int8_t cur_hotend = 0; cur_hotend < EXTRUDERS; ++cur_hotend) {
3648
-      setTargetHotend(0, cur_hotend);
3649
-    }
3646
+    disable_all_heaters();
3650 3647
   }
3651 3648
   SERIAL_EOL;
3652 3649
 }

Loading…
Откажи
Сачувај