Skip to content

Commit 0b23ccd

Browse files
committed
Abort arc on planner hard stop
1 parent bb33c76 commit 0b23ccd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/motion_control.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ void mc_arc(float* position, float* target, float* offset, float feed_rate, floa
150150
clamp_to_software_endstops(position);
151151
// Insert the segment into the buffer
152152
plan_buffer_line(position[X_AXIS], position[Y_AXIS], position[Z_AXIS], position[E_AXIS], feed_rate, extruder, position);
153+
// Handle the situation where the planner is aborted hard.
154+
if (waiting_inside_plan_buffer_line_print_aborted)
155+
return;
153156
}
154157
}
155158
// Clamp to the target position.

0 commit comments

Comments
 (0)