Apply soft limits to joystick jogging (#17114)
This commit is contained in:
parent
eb6c992bfb
commit
23c5701178
|
@ -173,6 +173,7 @@ Joystick joystick;
|
||||||
|
|
||||||
if (!UNEAR_ZERO(hypot2)) {
|
if (!UNEAR_ZERO(hypot2)) {
|
||||||
current_position += move_dist;
|
current_position += move_dist;
|
||||||
|
apply_motion_limits(current_position);
|
||||||
const float length = sqrt(hypot2);
|
const float length = sqrt(hypot2);
|
||||||
injecting_now = true;
|
injecting_now = true;
|
||||||
planner.buffer_line(current_position, length / seg_time, active_extruder, length);
|
planner.buffer_line(current_position, length / seg_time, active_extruder, length);
|
||||||
|
|
Loading…
Reference in a new issue