v <-> code_value

This commit is contained in:
Wurstnase 2015-04-20 23:31:10 +02:00
parent da0d91a79b
commit 61ae43f35e

View File

@ -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)