Fix UBL mesh edit delta moves (#20620)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
14b7eb1c5a
commit
25152a8cef
@ -867,17 +867,16 @@ static void moveAxis(AxisEnum axis, const int8_t direction) {
|
||||
NOMORE(ui.manual_move.offset, max - current_position[axis]);
|
||||
#else
|
||||
current_position[axis] += diff;
|
||||
const char *msg = PSTR(""); // clear the error
|
||||
if (direction < 0 && current_position[axis] < min) {
|
||||
current_position[axis] = min;
|
||||
drawMessage(GET_TEXT(MSG_LCD_SOFT_ENDSTOPS));
|
||||
msg = GET_TEXT(MSG_LCD_SOFT_ENDSTOPS);
|
||||
}
|
||||
else if (direction > 0 && current_position[axis] > max) {
|
||||
current_position[axis] = max;
|
||||
drawMessage(GET_TEXT(MSG_LCD_SOFT_ENDSTOPS));
|
||||
}
|
||||
else {
|
||||
drawMessage(""); // clear the error
|
||||
msg = GET_TEXT(MSG_LCD_SOFT_ENDSTOPS);
|
||||
}
|
||||
drawMessage(msg);
|
||||
#endif
|
||||
|
||||
ui.manual_move.soon(axis
|
||||
|
Reference in New Issue
Block a user