ソースを参照

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
 }

読み込み中…
キャンセル
保存