Ver código fonte

Use RAW_POSITION for MBL in planner.set_position_mm

Scott Lahteine 9 anos atrás
pai
commit
d8e5af6834
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      Marlin/planner.cpp

+ 5
- 1
Marlin/planner.cpp Ver arquivo

@@ -1142,10 +1142,14 @@ void Planner::check_axes_activity() {
1142 1142
 #endif // AUTO_BED_LEVELING_FEATURE || MESH_BED_LEVELING
1143 1143
   {
1144 1144
     #if ENABLED(MESH_BED_LEVELING)
1145
+
1145 1146
       if (mbl.active())
1146
-        z += mbl.get_z(x - home_offset[X_AXIS], y - home_offset[Y_AXIS]);
1147
+        z += mbl.get_z(RAW_X_POSITION(x), RAW_Y_POSITION(y));
1148
+
1147 1149
     #elif ENABLED(AUTO_BED_LEVELING_FEATURE)
1150
+
1148 1151
       apply_rotation_xyz(bed_level_matrix, x, y, z);
1152
+
1149 1153
     #endif
1150 1154
 
1151 1155
     long nx = position[X_AXIS] = lround(x * axis_steps_per_mm[X_AXIS]),

Carregando…
Cancelar
Salvar