소스 검색

Merge pull request #860 from PavelSindler/crash_det_issue

Crash detection/stop print erroneous movements hotfix
PavelSindler 7 년 전
부모
커밋
f365150e3a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Firmware/Marlin_main.cpp

+ 1 - 0
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,