浏览代码

Do not set current_position in mesh_plan_buffer_line

This is a task which _has_ to be performed by the caller,
such as prepare_move().
Yuri D'Elia 5 年之前
父节点
当前提交
5fa7c178b5
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      Firmware/Marlin_main.cpp

+ 0 - 4
Firmware/Marlin_main.cpp

@@ -8369,10 +8369,6 @@ void clamp_to_software_endstops(float target[3])
         }
         // The rest of the path.
         plan_buffer_line(x, y, z, e, feed_rate, extruder);
-        current_position[X_AXIS] = x;
-        current_position[Y_AXIS] = y;
-        current_position[Z_AXIS] = z;
-        current_position[E_AXIS] = e;
     }
 #endif  // MESH_BED_LEVELING