Fix Z_PROBE_END_SCRIPT in ABL (#14621)
This commit is contained in:
parent
a85cd042d8
commit
e96468566d
1 changed files with 6 additions and 6 deletions
|
@ -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));
|
||||
|
|
Reference in a new issue