diff --git a/Marlin/src/lcd/extensible_ui/ui_api.cpp b/Marlin/src/lcd/extensible_ui/ui_api.cpp index e3c552a05b..2c3841b673 100644 --- a/Marlin/src/lcd/extensible_ui/ui_api.cpp +++ b/Marlin/src/lcd/extensible_ui/ui_api.cpp @@ -115,7 +115,7 @@ namespace UI { set_destination_from_current(); switch (axis) { case X: case Y: case Z: - destination[Z_AXIS] = position; + destination[axis] = position; break; case E0: case E1: case E2: case E3: case E4: case E5: destination[E_AXIS] = position;