Browse Source

Fix LEVEL_CORNERS_USE_PROBE with BLTOUCH_HS_MODE (#21161)

qwewer0 4 years ago
parent
commit
45fff07a4c
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/lcd/menu/menu_bed_corners.cpp

+ 5
- 1
Marlin/src/lcd/menu/menu_bed_corners.cpp View File

@@ -269,12 +269,13 @@ static inline void _lcd_level_bed_corners_get_next_position() {
269 269
     do {
270 270
       ui.refresh(LCDVIEW_REDRAW_NOW);
271 271
       _lcd_draw_probing();                                             // update screen with # of good points
272
-      do_blocking_move_to_z(current_position.z + LEVEL_CORNERS_Z_HOP); // clearance
272
+      do_blocking_move_to_z(current_position.z + LEVEL_CORNERS_Z_HOP + TERN0(BLTOUCH_HS_MODE, 7)); // clearance
273 273
 
274 274
       _lcd_level_bed_corners_get_next_position();         // Select next corner coordinates
275 275
       current_position -= probe.offset_xy;                // Account for probe offsets
276 276
       do_blocking_move_to_xy(current_position);           // Goto corner
277 277
 
278
+      TERN_(BLTOUCH_HS_MODE, bltouch.deploy());           // Deploy in HIGH SPEED MODE
278 279
       if (!_lcd_level_bed_corners_probe()) {              // Probe down to tolerance
279 280
         if (_lcd_level_bed_corners_raise()) {             // Prompt user to raise bed if needed
280 281
           #if ENABLED(LEVEL_CORNERS_VERIFY_RAISED)        // Verify
@@ -295,6 +296,9 @@ static inline void _lcd_level_bed_corners_get_next_position() {
295 296
 
296 297
     } while (good_points < nr_edge_points); // loop until all points within tolerance
297 298
 
299
+    TERN_(BLTOUCH_HS_MODE, do_blocking_move_to_z(current_position.z + LEVEL_CORNERS_Z_HOP)); // Do clearance in HIGH SPEED MODE at the very end
300
+    TERN_(BLTOUCH_HS_MODE, bltouch.stow()); // Stow in HIGH SPEED MODE at the very end
301
+
298 302
     ui.goto_screen(_lcd_draw_level_prompt); // prompt for bed leveling
299 303
     ui.set_selection(true);
300 304
   }

Loading…
Cancel
Save