Merge pull request #860 from PavelSindler/crash_det_issue

Crash detection/stop print erroneous movements hotfix
This commit is contained in:
PavelSindler 2018-06-22 08:48:24 +02:00 committed by GitHub
commit f365150e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7317,6 +7317,7 @@ void clamp_to_software_endstops(float target[3])
float de = e - current_position[E_AXIS];
for (int i = 1; i < n_segments; ++ i) {
float t = float(i) / float(n_segments);
if (saved_printing || (mbl.active == false)) return;
plan_buffer_line(
current_position[X_AXIS] + t * dx,
current_position[Y_AXIS] + t * dy,