diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 9116af8f2..c5f7681f3 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1202,7 +1202,9 @@ static void homeaxis(int axis) { } #endif #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) -// if (axis==Z_AXIS) retract_z_probe(); + #ifndef Z_PROBE_SLED + if (axis==Z_AXIS) retract_z_probe(); + #endif #endif } @@ -1268,7 +1270,7 @@ void refresh_cmd_timeout(void) } //retract #endif //FWRETRACT -#ifdef ENABLE_AUTO_BED_LEVELING +#ifdef Z_PROBE_SLED // // Method to dock/undock a sled designed by Charles Bell. // diff --git a/Marlin/vector_3.cpp b/Marlin/vector_3.cpp index 82b6925b8..5f1c294ed 100644 --- a/Marlin/vector_3.cpp +++ b/Marlin/vector_3.cpp @@ -121,7 +121,7 @@ matrix_3x3 matrix_3x3::create_look_at(vector_3 target) { vector_3 z_row = target.get_normal(); vector_3 x_row = vector_3(1, 0, -target.x/target.z).get_normal(); - vector_3 y_row = vector_3(0, 1, -target.y/target.z).get_normal(); + vector_3 y_row = vector_3::cross(z_row, x_row).get_normal(); // x_row.debug("x_row"); // y_row.debug("y_row");