浏览代码

Allow cold Filament Load/Unload with M302 P1 (#20262)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
pseudex 4 年前
父节点
当前提交
4258ff1a68
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      Marlin/src/feature/pause.cpp

+ 3
- 3
Marlin/src/feature/pause.cpp 查看文件

@@ -142,10 +142,10 @@ static bool ensure_safe_temperature(const bool wait=true, const PauseMode mode=P
142 142
   #endif
143 143
   UNUSED(mode);
144 144
 
145
-  if (wait)
146
-    return thermalManager.wait_for_hotend(active_extruder);
145
+  if (wait) return thermalManager.wait_for_hotend(active_extruder);
147 146
 
148
-  wait_for_heatup = true; // Allow interruption by Emergency Parser M108
147
+  // Allow interruption by Emergency Parser M108
148
+  wait_for_heatup = TERN1(PREVENT_COLD_EXTRUSION, !thermalManager.allow_cold_extrude);
149 149
   while (wait_for_heatup && ABS(thermalManager.degHotend(active_extruder) - thermalManager.degTargetHotend(active_extruder)) > TEMP_WINDOW)
150 150
     idle();
151 151
   wait_for_heatup = false;

正在加载...
取消
保存