From 836b0bbeee9f447685f4ae3f649fb85dfe91554f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 13 May 2018 16:48:42 -0500 Subject: [PATCH] Fix MBL line_to_destination Fix #10708 --- Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h | 3 +-- Marlin/src/module/motion.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h b/Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h index 7f2d5c0aa1..94dadeccf0 100644 --- a/Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h +++ b/Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h @@ -114,9 +114,8 @@ public: ; } - // Support functions, which may be embedded in the class later #if IS_CARTESIAN && DISABLED(SEGMENT_LEVELED_MOVES) - void line_to_destination(const float fr_mm_s, uint8_t x_splits=0xFF, uint8_t y_splits=0xFF); + static void line_to_destination(const float fr_mm_s, uint8_t x_splits=0xFF, uint8_t y_splits=0xFF); #endif }; diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index e62c659b3e..b91b84d7c8 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -780,7 +780,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS }, */ if (current_position[X_AXIS] != destination[X_AXIS] || current_position[Y_AXIS] != destination[Y_AXIS]) { #if ENABLED(MESH_BED_LEVELING) - mesh_line_to_destination(MMS_SCALED(feedrate_mm_s)); + mbl.line_to_destination(MMS_SCALED(feedrate_mm_s)); #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) bilinear_line_to_destination(MMS_SCALED(feedrate_mm_s)); #endif