|
@ -624,25 +624,25 @@ void DGUSScreenHandler::ManualAssistLeveling(DGUS_VP_Variable &var, void *val_pt |
|
|
|
|
|
|
|
|
switch (point_value) { |
|
|
switch (point_value) { |
|
|
case 0x0001: |
|
|
case 0x0001: |
|
|
enqueue_corner_move(X_MIN_POS + abs(mks_corner_offsets[0].x), |
|
|
enqueue_corner_move(X_MIN_POS + ABS(mks_corner_offsets[0].x), |
|
|
Y_MIN_POS + abs(mks_corner_offsets[0].y), level_speed); |
|
|
Y_MIN_POS + ABS(mks_corner_offsets[0].y), level_speed); |
|
|
queue.enqueue_now_P(PSTR("G28Z")); |
|
|
queue.enqueue_now_P(PSTR("G28Z")); |
|
|
break; |
|
|
break; |
|
|
case 0x0002: |
|
|
case 0x0002: |
|
|
enqueue_corner_move(X_MAX_POS - abs(mks_corner_offsets[1].x), |
|
|
enqueue_corner_move(X_MAX_POS - ABS(mks_corner_offsets[1].x), |
|
|
Y_MIN_POS + abs(mks_corner_offsets[1].y), level_speed); |
|
|
Y_MIN_POS + ABS(mks_corner_offsets[1].y), level_speed); |
|
|
break; |
|
|
break; |
|
|
case 0x0003: |
|
|
case 0x0003: |
|
|
enqueue_corner_move(X_MAX_POS - abs(mks_corner_offsets[2].x), |
|
|
enqueue_corner_move(X_MAX_POS - ABS(mks_corner_offsets[2].x), |
|
|
Y_MAX_POS - abs(mks_corner_offsets[2].y), level_speed); |
|
|
Y_MAX_POS - ABS(mks_corner_offsets[2].y), level_speed); |
|
|
break; |
|
|
break; |
|
|
case 0x0004: |
|
|
case 0x0004: |
|
|
enqueue_corner_move(X_MIN_POS + abs(mks_corner_offsets[3].x), |
|
|
enqueue_corner_move(X_MIN_POS + ABS(mks_corner_offsets[3].x), |
|
|
Y_MAX_POS - abs(mks_corner_offsets[3].y), level_speed); |
|
|
Y_MAX_POS - ABS(mks_corner_offsets[3].y), level_speed); |
|
|
break; |
|
|
break; |
|
|
case 0x0005: |
|
|
case 0x0005: |
|
|
enqueue_corner_move(abs(mks_corner_offsets[4].x), |
|
|
enqueue_corner_move(ABS(mks_corner_offsets[4].x), |
|
|
abs(mks_corner_offsets[4].y), level_speed); |
|
|
ABS(mks_corner_offsets[4].y), level_speed); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|