|
@@ -1955,7 +1955,7 @@ inline void gcode_G28() {
|
1955
|
1955
|
// Set the Y position, if included
|
1956
|
1956
|
if (code_seen(axis_codes[Y_AXIS]) && code_has_value()) {
|
1957
|
1957
|
if (code_value_long() != 0) // filter 0
|
1958
|
|
- current_position[X_AXIS] = code_value();
|
|
1958
|
+ current_position[Y_AXIS] = code_value();
|
1959
|
1959
|
}
|
1960
|
1960
|
|
1961
|
1961
|
// Home Z last if homing towards the bed
|
|
@@ -2044,7 +2044,7 @@ inline void gcode_G28() {
|
2044
|
2044
|
// Set the Z position, if included
|
2045
|
2045
|
if (code_seen(axis_codes[Z_AXIS]) && code_has_value()) {
|
2046
|
2046
|
if (code_value_long() != 0) // filter 0
|
2047
|
|
- current_position[X_AXIS] = code_value();
|
|
2047
|
+ current_position[Z_AXIS] = code_value();
|
2048
|
2048
|
}
|
2049
|
2049
|
|
2050
|
2050
|
#if defined(ENABLE_AUTO_BED_LEVELING) && (Z_HOME_DIR < 0)
|