瀏覽代碼

Merge pull request #4487 from thinkyhead/rc_refresh_pos_fix

Update refresh_positioning - no need for obj ref
Scott Lahteine 9 年之前
父節點
當前提交
1993c45759
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/planner.cpp

+ 1
- 1
Marlin/planner.cpp 查看文件

@@ -1182,7 +1182,7 @@ void Planner::reset_acceleration_rates() {
1182 1182
 
1183 1183
 // Recalculate position, steps_to_mm if axis_steps_per_mm changes!
1184 1184
 void Planner::refresh_positioning() {
1185
-  LOOP_XYZE(i) planner.steps_to_mm[i] = 1.0 / planner.axis_steps_per_mm[i];
1185
+  LOOP_XYZE(i) steps_to_mm[i] = 1.0 / axis_steps_per_mm[i];
1186 1186
   #if ENABLED(DELTA) || ENABLED(SCARA)
1187 1187
     inverse_kinematics(current_position);
1188 1188
     set_position_mm(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]);

Loading…
取消
儲存