Browse Source

Fix comment on Z raise for homing, save a few bytes

pull/1/head
Scott Lahteine 9 years ago
parent
commit
6559f7359f
  1. 10
      Marlin/Marlin_main.cpp

10
Marlin/Marlin_main.cpp

@ -2916,11 +2916,11 @@ inline void gcode_G28() {
#elif defined(MIN_Z_HEIGHT_FOR_HOMING) && MIN_Z_HEIGHT_FOR_HOMING > 0 #elif defined(MIN_Z_HEIGHT_FOR_HOMING) && MIN_Z_HEIGHT_FOR_HOMING > 0
// Raise Z before homing any other axes and z is not already high enough (never lower z) // Raise Z before homing, if specified
float z_dest = (current_position[Z_AXIS] += MIN_Z_HEIGHT_FOR_HOMING); destination[Z_AXIS] = (current_position[Z_AXIS] += MIN_Z_HEIGHT_FOR_HOMING);
#if ENABLED(DEBUG_LEVELING_FEATURE) #if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) { if (DEBUGGING(LEVELING)) {
SERIAL_ECHOPAIR("Raise Z (before homing) to ", z_dest); SERIAL_ECHOPAIR("Raise Z (before homing) to ", destination[Z_AXIS]);
SERIAL_EOL; SERIAL_EOL;
} }
#endif #endif
@ -2928,9 +2928,9 @@ inline void gcode_G28() {
feedrate = homing_feedrate[Z_AXIS]; feedrate = homing_feedrate[Z_AXIS];
#if HAS_BED_PROBE #if HAS_BED_PROBE
do_blocking_move_to_z(z_dest); do_blocking_move_to_z(destination[Z_AXIS]);
#else #else
line_to_z(z_dest); line_to_z(destination[Z_AXIS]);
stepper.synchronize(); stepper.synchronize();
#endif #endif

Loading…
Cancel
Save