From 6335acbf5cc96f50109e987d8030b26702650a88 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 23 Sep 2016 02:57:36 -0500 Subject: [PATCH] Patch bug in linear unapply_leveling --- Marlin/planner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index cad1f3eaa..44665cf98 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -571,7 +571,9 @@ void Planner::check_axes_activity() { matrix_3x3 inverse = matrix_3x3::transpose(bed_level_matrix); - float dx = lx - (X_TILT_FULCRUM), dy = ly - (Y_TILT_FULCRUM), dz = lz; + float dx = RAW_X_POSITION(lx) - (X_TILT_FULCRUM), + dy = RAW_Y_POSITION(ly) - (Y_TILT_FULCRUM), + dz = RAW_Z_POSITION(lz); apply_rotation_xyz(inverse, dx, dy, dz);