Browse Source

Fix for UBL set_bed_leveling_enabled

Scott Lahteine 6 years ago
parent
commit
ad6baa5c9d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/bedlevel/bedlevel.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/bedlevel.cpp View File

@@ -107,12 +107,12 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
107 107
           const float (&pos)[XYZE] = current_position;
108 108
         #endif
109 109
         if (planner.leveling_active) {
110
-          current_position[Z_AXIS] += ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS]);
110
+          current_position[Z_AXIS] += ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS]);
111 111
           planner.leveling_active = false;
112 112
         }
113 113
         else {
114 114
           planner.leveling_active = true;
115
-          current_position[Z_AXIS] -= ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS]);
115
+          current_position[Z_AXIS] -= ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS]);
116 116
         }
117 117
       #endif
118 118
 

Loading…
Cancel
Save