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