瀏覽代碼

Fix Z_PROBE_END_SCRIPT in ABL (#14621)

Robby Candra 6 年之前
父節點
當前提交
e96468566d
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. 6
    6
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 6
- 6
Marlin/src/gcode/bedlevel/abl/G29.cpp 查看文件

@@ -963,12 +963,6 @@ G29_TYPE GcodeSuite::G29() {
963 963
 
964 964
     #endif // ABL_PLANAR
965 965
 
966
-    #ifdef Z_PROBE_END_SCRIPT
967
-      if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
968
-      planner.synchronize();
969
-      process_subcommands_now_P(PSTR(Z_PROBE_END_SCRIPT));
970
-    #endif
971
-
972 966
     // Auto Bed Leveling is complete! Enable if possible.
973 967
     planner.leveling_active = dryrun ? abl_should_enable : true;
974 968
   } // !isnan(measured_z)
@@ -985,6 +979,12 @@ G29_TYPE GcodeSuite::G29() {
985 979
     move_z_after_probing();
986 980
   #endif
987 981
 
982
+  #ifdef Z_PROBE_END_SCRIPT
983
+    if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
984
+    planner.synchronize();
985
+    process_subcommands_now_P(PSTR(Z_PROBE_END_SCRIPT));
986
+  #endif
987
+
988 988
   report_current_position();
989 989
 
990 990
   G29_RETURN(isnan(measured_z));

Loading…
取消
儲存