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