浏览代码

Don't let the flow multiplier affect retract/recover length

Scott Lahteine 8 年前
父节点
当前提交
9fc72422e4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      Marlin/Marlin_main.cpp

+ 6
- 0
Marlin/Marlin_main.cpp 查看文件

@@ -3150,6 +3150,10 @@ static void homeaxis(const AxisEnum axis) {
3150 3150
     const bool has_zhop = retract_zlift > 0.01;     // Is there a hop set?
3151 3151
 
3152 3152
     const float old_feedrate_mm_s = feedrate_mm_s;
3153
+    const int16_t old_flow = flow_percentage[active_extruder];
3154
+
3155
+    // Don't apply flow multiplication to retract/recover
3156
+    flow_percentage[active_extruder] = 100;
3153 3157
 
3154 3158
     // The current position will be the destination for E and Z moves
3155 3159
     set_destination_to_current();
@@ -3192,6 +3196,8 @@ static void homeaxis(const AxisEnum axis) {
3192 3196
       prepare_move_to_destination();  // Recover E
3193 3197
     }
3194 3198
 
3199
+    // Restore flow and feedrate
3200
+    flow_percentage[active_extruder] = old_flow;
3195 3201
     feedrate_mm_s = old_feedrate_mm_s;
3196 3202
 
3197 3203
     // The active extruder is now retracted or recovered

正在加载...
取消
保存