Browse Source

Use "+=" in plane rotation

Scott Lahteine 10 years ago
parent
commit
d580a0d186
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

2765
               z_tmp = current_position[Z_AXIS],
2765
               z_tmp = current_position[Z_AXIS],
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)
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
         sync_plan_position();
2770
         sync_plan_position();
2771
       }
2771
       }
2772
     #endif // !DELTA
2772
     #endif // !DELTA

Loading…
Cancel
Save