Browse Source

Merge pull request #1711 from PavelSindler/stop_print_movements

stop print erroneous movements fix
MRprusa3d 5 years ago
parent
commit
b975a18ab1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Firmware/Marlin_main.cpp

+ 1 - 0
Firmware/Marlin_main.cpp

@@ -6093,6 +6093,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 (mbl.active == false) return;
                 plan_buffer_line(
                                  current_position[X_AXIS] + t * dx,
                                  current_position[Y_AXIS] + t * dy,