Allow UBL G29 J1 with PAUSE_BEFORE_DEPLOY_STOW (#15934)
This commit is contained in:
parent
7116a8645c
commit
9906e96ffb
|
@ -741,13 +741,13 @@
|
|||
* This attempts to fill in locations closest to the nozzle's start location first.
|
||||
*/
|
||||
void unified_bed_leveling::probe_entire_mesh(const xy_pos_t &near, const bool do_ubl_mesh_map, const bool stow_probe, const bool do_furthest) {
|
||||
DEPLOY_PROBE(); // Deploy before ui.capture() to allow for PAUSE_BEFORE_DEPLOY_STOW
|
||||
|
||||
#if HAS_LCD_MENU
|
||||
ui.capture();
|
||||
#endif
|
||||
|
||||
save_ubl_active_state_and_disable(); // No bed level correction so only raw data is obtained
|
||||
DEPLOY_PROBE();
|
||||
|
||||
uint8_t count = GRID_MAX_POINTS;
|
||||
|
||||
mesh_index_pair best;
|
||||
|
@ -764,10 +764,10 @@
|
|||
if (ui.button_pressed()) {
|
||||
ui.quick_feedback(false); // Preserve button state for click-and-hold
|
||||
SERIAL_ECHOLNPGM("\nMesh only partially populated.\n");
|
||||
STOW_PROBE();
|
||||
ui.wait_for_release();
|
||||
ui.quick_feedback();
|
||||
ui.release();
|
||||
STOW_PROBE(); // Release UI before stow to allow for PAUSE_BEFORE_DEPLOY_STOW
|
||||
return restore_ubl_active_state_and_leave();
|
||||
}
|
||||
#endif
|
||||
|
@ -790,7 +790,9 @@
|
|||
|
||||
} while (best.pos.x >= 0 && --count);
|
||||
|
||||
STOW_PROBE();
|
||||
ui.release();
|
||||
STOW_PROBE(); // Release UI during stow to allow for PAUSE_BEFORE_DEPLOY_STOW
|
||||
ui.capture();
|
||||
|
||||
#ifdef Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
|
@ -1504,6 +1506,7 @@
|
|||
|
||||
abort_flag = isnan(measured_z);
|
||||
|
||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||
if (DEBUGGING(LEVELING)) {
|
||||
const xy_pos_t lpos = rpos.asLogical();
|
||||
DEBUG_CHAR('(');
|
||||
|
@ -1516,6 +1519,7 @@
|
|||
DEBUG_ECHOPAIR_F(") measured: ", measured_z, 7);
|
||||
DEBUG_ECHOPAIR_F(" correction: ", get_z_correction(rpos), 7);
|
||||
}
|
||||
#endif
|
||||
|
||||
measured_z -= get_z_correction(rpos) /* + probe_offset.z */ ;
|
||||
|
||||
|
|
Loading…
Reference in a new issue