mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 15:26:18 +00:00
v <-> code_value
This commit is contained in:
parent
da0d91a79b
commit
61ae43f35e
@ -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…
Reference in New Issue
Block a user