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
           const float (&pos)[XYZE] = current_position;
107
           const float (&pos)[XYZE] = current_position;
108
         #endif
108
         #endif
109
         if (planner.leveling_active) {
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
           planner.leveling_active = false;
111
           planner.leveling_active = false;
112
         }
112
         }
113
         else {
113
         else {
114
           planner.leveling_active = true;
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
       #endif
117
       #endif
118
 
118
 

Loading…
Cancel
Save