fix feedrate for homing z
max_feedrate is in mm/s. line_to_destination needs a feedrate in mm/min because there is feedrate/60.
This commit is contained in:
parent
93fdc2951b
commit
581b2aae04
@ -1950,7 +1950,7 @@ inline void gcode_G28() {
|
||||
current_position[Z_AXIS] = 0;
|
||||
plan_set_position(cpx, cpy, 0, current_position[E_AXIS]);
|
||||
destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS); // Set destination away from bed
|
||||
feedrate = max_feedrate[Z_AXIS];
|
||||
feedrate = max_feedrate[Z_AXIS] * 60; // max_feedrate is in mm/s. line_to_destination is feedrate/60.
|
||||
line_to_destination();
|
||||
st_synchronize();
|
||||
HOMEAXIS(Z);
|
||||
|
Loading…
Reference in New Issue
Block a user