v <-> code_value
This commit is contained in:
parent
da0d91a79b
commit
61ae43f35e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue