Browse Source

v <-> code_value

pull/1/head
Wurstnase 10 years ago
parent
commit
61ae43f35e
  1. 4
      Marlin/Marlin_main.cpp

4
Marlin/Marlin_main.cpp

@ -1957,7 +1957,7 @@ inline void gcode_G28() {
if (code_seen(axis_codes[Y_AXIS]) && code_has_value()) {
float v = code_value();
if (Y_HOME_DIR == -1 || v != 0) // filter 0 with max-endstopps
current_position[Y_AXIS] = code_value();
current_position[Y_AXIS] = v;
}
// Home Z last if homing towards the bed
@ -2047,7 +2047,7 @@ inline void gcode_G28() {
if (code_seen(axis_codes[Z_AXIS]) && code_has_value()) {
float v = code_value();
if (Z_HOME_DIR == -1 || v != 0) // filter 0 with max-endstopps
current_position[Z_AXIS] = code_value();
current_position[Z_AXIS] = v;
}
#if defined(ENABLE_AUTO_BED_LEVELING) && (Z_HOME_DIR < 0)

Loading…
Cancel
Save