Browse Source

Fix MBL line_to_destination

Fix #10708
pull/1/head
Scott Lahteine 6 years ago
parent
commit
836b0bbeee
  1. 3
      Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h
  2. 2
      Marlin/src/module/motion.cpp

3
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
};

2
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

Loading…
Cancel
Save