Browse Source

Fixed incorrect axis index. (#12051)

pull/1/head
Marcio Teixeira 6 years ago
committed by Scott Lahteine
parent
commit
cef1de89d0
  1. 2
      Marlin/src/lcd/extensible_ui/ui_api.cpp

2
Marlin/src/lcd/extensible_ui/ui_api.cpp

@ -115,7 +115,7 @@ namespace UI {
set_destination_from_current(); set_destination_from_current();
switch (axis) { switch (axis) {
case X: case Y: case Z: case X: case Y: case Z:
destination[Z_AXIS] = position; destination[axis] = position;
break; break;
case E0: case E1: case E2: case E3: case E4: case E5: case E0: case E1: case E2: case E3: case E4: case E5:
destination[E_AXIS] = position; destination[E_AXIS] = position;

Loading…
Cancel
Save