Browse Source

Fix Z_PROBE_END_SCRIPT in ABL (#14621)

pull/1/head
Robby Candra 5 years ago
committed by Scott Lahteine
parent
commit
e96468566d
  1. 12
      Marlin/src/gcode/bedlevel/abl/G29.cpp

12
Marlin/src/gcode/bedlevel/abl/G29.cpp

@ -963,12 +963,6 @@ G29_TYPE GcodeSuite::G29() {
#endif // ABL_PLANAR
#ifdef Z_PROBE_END_SCRIPT
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
planner.synchronize();
process_subcommands_now_P(PSTR(Z_PROBE_END_SCRIPT));
#endif
// Auto Bed Leveling is complete! Enable if possible.
planner.leveling_active = dryrun ? abl_should_enable : true;
} // !isnan(measured_z)
@ -985,6 +979,12 @@ G29_TYPE GcodeSuite::G29() {
move_z_after_probing();
#endif
#ifdef Z_PROBE_END_SCRIPT
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
planner.synchronize();
process_subcommands_now_P(PSTR(Z_PROBE_END_SCRIPT));
#endif
report_current_position();
G29_RETURN(isnan(measured_z));

Loading…
Cancel
Save