@@ -217,13 +217,13 @@ static void _lcd_level_bed_corners_get_next_position() {
217
217
218
218
bool _lcd_level_bed_corners_probe (bool verify=false ) {
219
219
if (verify) do_blocking_move_to_z (current_position.z + LEVEL_CORNERS_Z_HOP); // do clearance if needed
220
- TERN_ (BLTOUCH_SLOW_MODE, bltouch.deploy ()); // Deploy in LOW SPEED MODE on every probe action
220
+ TERN_ (BLTOUCH, if (!bltouch. high_speed_mode ) bltouch.deploy ()); // Deploy in LOW SPEED MODE on every probe action
221
221
do_blocking_move_to_z (last_z - LEVEL_CORNERS_PROBE_TOLERANCE, MMM_TO_MMS (Z_PROBE_FEEDRATE_SLOW)); // Move down to lower tolerance
222
222
if (TEST (endstops.trigger_state (), Z_MIN_PROBE)) { // check if probe triggered
223
223
endstops.hit_on_purpose ();
224
224
set_current_from_steppers_for_axis (Z_AXIS);
225
225
sync_plan_position ();
226
- TERN_ (BLTOUCH_SLOW_MODE, bltouch.stow ()); // Stow in LOW SPEED MODE on every trigger
226
+ TERN_ (BLTOUCH, if (!bltouch. high_speed_mode ) bltouch.stow ()); // Stow in LOW SPEED MODE on every trigger
227
227
// Triggered outside tolerance range?
228
228
if (ABS (current_position.z - last_z) > LEVEL_CORNERS_PROBE_TOLERANCE) {
229
229
last_z = current_position.z ; // Above tolerance. Set a new Z for subsequent corners.
@@ -249,7 +249,7 @@ static void _lcd_level_bed_corners_get_next_position() {
249
249
}
250
250
idle ();
251
251
}
252
- TERN_ (BLTOUCH_SLOW_MODE, bltouch.stow ());
252
+ TERN_ (BLTOUCH, if (!bltouch. high_speed_mode ) bltouch.stow ());
253
253
ui.goto_screen (_lcd_draw_probing);
254
254
return (probe_triggered);
255
255
}
@@ -263,13 +263,14 @@ static void _lcd_level_bed_corners_get_next_position() {
263
263
do {
264
264
ui.refresh (LCDVIEW_REDRAW_NOW);
265
265
_lcd_draw_probing (); // update screen with # of good points
266
- do_blocking_move_to_z (SUM_TERN (BLTOUCH_HS_MODE, current_position.z + LEVEL_CORNERS_Z_HOP, 7 )); // clearance
266
+
267
+ do_blocking_move_to_z (current_position.z + LEVEL_CORNERS_Z_HOP + TERN0 (BLTOUCH, bltouch.z_extra_clearance ())); // clearance
267
268
268
269
_lcd_level_bed_corners_get_next_position (); // Select next corner coordinates
269
270
current_position -= probe.offset_xy ; // Account for probe offsets
270
271
do_blocking_move_to_xy (current_position); // Goto corner
271
272
272
- TERN_ (BLTOUCH_HS_MODE, bltouch.deploy ()); // Deploy in HIGH SPEED MODE
273
+ TERN_ (BLTOUCH, if ( bltouch.high_speed_mode ) bltouch. deploy ()); // Deploy in HIGH SPEED MODE
273
274
if (!_lcd_level_bed_corners_probe ()) { // Probe down to tolerance
274
275
if (_lcd_level_bed_corners_raise ()) { // Prompt user to raise bed if needed
275
276
#if ENABLED(LEVEL_CORNERS_VERIFY_RAISED) // Verify
@@ -290,10 +291,12 @@ static void _lcd_level_bed_corners_get_next_position() {
290
291
291
292
} while (good_points < nr_edge_points); // loop until all points within tolerance
292
293
293
- #if ENABLED(BLTOUCH_HS_MODE)
294
- // In HIGH SPEED MODE do clearance and stow at the very end
295
- do_blocking_move_to_z (current_position.z + LEVEL_CORNERS_Z_HOP);
296
- bltouch.stow ();
294
+ #if ENABLED(BLTOUCH)
295
+ if (bltouch.high_speed_mode )
296
+ // In HIGH SPEED MODE do clearance and stow at the very end
297
+ do_blocking_move_to_z (current_position.z + LEVEL_CORNERS_Z_HOP);
298
+ bltouch.stow ();
299
+ }
297
300
#endif
298
301
299
302
ui.goto_screen (_lcd_draw_level_prompt); // prompt for bed leveling
0 commit comments