crash detection/stop print erroneous movements hotfix
This commit is contained in:
parent
78b748ebdb
commit
7b81663883
@ -7317,6 +7317,7 @@ void clamp_to_software_endstops(float target[3])
|
|||||||
float de = e - current_position[E_AXIS];
|
float de = e - current_position[E_AXIS];
|
||||||
for (int i = 1; i < n_segments; ++ i) {
|
for (int i = 1; i < n_segments; ++ i) {
|
||||||
float t = float(i) / float(n_segments);
|
float t = float(i) / float(n_segments);
|
||||||
|
if (saved_printing || (mbl.active == false)) return;
|
||||||
plan_buffer_line(
|
plan_buffer_line(
|
||||||
current_position[X_AXIS] + t * dx,
|
current_position[X_AXIS] + t * dx,
|
||||||
current_position[Y_AXIS] + t * dy,
|
current_position[Y_AXIS] + t * dy,
|
||||||
|
Loading…
Reference in New Issue
Block a user