Merge pull request #4357 from DRracer/z-stall-xyz-workaround

Force-move-Z after searching for XY calibration points
This commit is contained in:
3d-gussner 2023-08-31 08:21:43 +02:00 committed by GitHub
commit 4c53163068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 8 deletions

View File

@ -2796,13 +2796,19 @@ canceled:
bool sample_z() {
bool sampled = true;
//make space
raise_z(150);
// make some space for the sheet
// Avoid calling raise_z(), because a false triggering stallguard may prevent the Z from moving.
// The extruder then may ram the sheet hard if not going down from some ~150mm height
current_position[Z_AXIS] = 0.F;
destination[Z_AXIS] = 150.F;
plan_buffer_line_destinationXYZE(homing_feedrate[Z_AXIS] / 60);
lcd_show_fullscreen_message_and_wait_P(_T(MSG_PLACE_STEEL_SHEET));
// Sample Z heights for the mesh bed leveling.
// In addition, store the results into an eeprom, to be used later for verification of the bed leveling process.
if (!sample_mesh_and_store_reference()) sampled = false;
if (!sample_mesh_and_store_reference())
sampled = false;
return sampled;
}