Abort arc on planner hard stop

This commit is contained in:
Alex Voinea 2022-04-29 20:38:48 +02:00
parent bb33c76d2b
commit 0b23ccdee9

View File

@ -150,6 +150,9 @@ void mc_arc(float* position, float* target, float* offset, float feed_rate, floa
clamp_to_software_endstops(position); clamp_to_software_endstops(position);
// Insert the segment into the buffer // Insert the segment into the buffer
plan_buffer_line(position[X_AXIS], position[Y_AXIS], position[Z_AXIS], position[E_AXIS], feed_rate, extruder, position); plan_buffer_line(position[X_AXIS], position[Y_AXIS], position[Z_AXIS], position[E_AXIS], feed_rate, extruder, position);
// Handle the situation where the planner is aborted hard.
if (waiting_inside_plan_buffer_line_print_aborted)
return;
} }
} }
// Clamp to the target position. // Clamp to the target position.