Browse Source

Fix Z_PROBE_END_SCRIPT in ABL (#14621)

Robby Candra 6 years ago
parent
commit
e96468566d
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 6
- 6
Marlin/src/gcode/bedlevel/abl/G29.cpp View File

963
 
963
 
964
     #endif // ABL_PLANAR
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
     // Auto Bed Leveling is complete! Enable if possible.
966
     // Auto Bed Leveling is complete! Enable if possible.
973
     planner.leveling_active = dryrun ? abl_should_enable : true;
967
     planner.leveling_active = dryrun ? abl_should_enable : true;
974
   } // !isnan(measured_z)
968
   } // !isnan(measured_z)
985
     move_z_after_probing();
979
     move_z_after_probing();
986
   #endif
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
   report_current_position();
988
   report_current_position();
989
 
989
 
990
   G29_RETURN(isnan(measured_z));
990
   G29_RETURN(isnan(measured_z));

Loading…
Cancel
Save