Browse Source

Apply soft limits to joystick jogging (#17114)

vanilla_fb_2.0.x
Jamie 5 years ago
committed by GitHub
parent
commit
23c5701178
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Marlin/src/feature/joystick.cpp

1
Marlin/src/feature/joystick.cpp

@ -173,6 +173,7 @@ Joystick joystick;
if (!UNEAR_ZERO(hypot2)) {
current_position += move_dist;
apply_motion_limits(current_position);
const float length = sqrt(hypot2);
injecting_now = true;
planner.buffer_line(current_position, length / seg_time, active_extruder, length);

Loading…
Cancel
Save