Skip to content

Commit

Permalink
Apply soft limits to joystick jogging (MarlinFirmware#17114)
Browse files Browse the repository at this point in the history
  • Loading branch information
vector76 authored and oechslein committed Mar 21, 2020
1 parent 8c0aed2 commit 4fa4742
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Marlin/src/feature/joystick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4fa4742

Please sign in to comment.