ソースを参照

Use "+=" in plane rotation

Scott Lahteine 9年前
コミット
d580a0d186
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp ファイルの表示

@@ -2765,8 +2765,8 @@ inline void gcode_G28() {
2765 2765
               z_tmp = current_position[Z_AXIS],
2766 2766
               real_z = (float)st_get_position(Z_AXIS) / axis_steps_per_unit[Z_AXIS];  //get the real Z (since the auto bed leveling is already correcting the plane)
2767 2767
 
2768
-        apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp);         //Apply the correction sending the probe offset
2769
-        current_position[Z_AXIS] = z_tmp - real_z + current_position[Z_AXIS];   //The difference is added to current position and sent to planner.
2768
+        apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); // Apply the correction sending the probe offset
2769
+        current_position[Z_AXIS] += z_tmp - real_z;                     // The difference is added to current position and sent to planner.
2770 2770
         sync_plan_position();
2771 2771
       }
2772 2772
     #endif // !DELTA

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