Browse Source

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.
pull/1/head
Wurstnase 10 years ago
parent
commit
581b2aae04
  1. 2
      Marlin/Marlin_main.cpp

2
Marlin/Marlin_main.cpp

@ -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…
Cancel
Save