From 7b816638838f945013b17f4bda78f6ee38b88ce8 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Thu, 21 Jun 2018 22:16:45 +0200 Subject: [PATCH 1/2] crash detection/stop print erroneous movements hotfix --- Firmware/Marlin_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index ed801c99..dc38a130 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -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, From a83475bf7c0edb133fcf95fef3b9db6e28fe5055 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Thu, 21 Jun 2018 22:18:10 +0200 Subject: [PATCH 2/2] whitespace --- Firmware/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index dc38a130..411d1dd7 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -7317,7 +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; + if (saved_printing || (mbl.active == false)) return; plan_buffer_line( current_position[X_AXIS] + t * dx, current_position[Y_AXIS] + t * dy,