瀏覽代碼

Raise Z on exit from 'Level Bed Corners' (#20817)

Katelyn Schiesser 4 年之前
父節點
當前提交
fda9fb563b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      Marlin/src/lcd/menu/menu_bed_corners.cpp

+ 3
- 3
Marlin/src/lcd/menu/menu_bed_corners.cpp 查看文件

39
 #ifndef LEVEL_CORNERS_Z_HOP
39
 #ifndef LEVEL_CORNERS_Z_HOP
40
   #define LEVEL_CORNERS_Z_HOP 4.0
40
   #define LEVEL_CORNERS_Z_HOP 4.0
41
 #endif
41
 #endif
42
-
43
 #ifndef LEVEL_CORNERS_HEIGHT
42
 #ifndef LEVEL_CORNERS_HEIGHT
44
   #define LEVEL_CORNERS_HEIGHT 0.0
43
   #define LEVEL_CORNERS_HEIGHT 0.0
45
 #endif
44
 #endif
248
     wait_for_probe = true;
247
     wait_for_probe = true;
249
     ui.goto_screen(_lcd_draw_raise); // show raise screen
248
     ui.goto_screen(_lcd_draw_raise); // show raise screen
250
     ui.set_selection(true);
249
     ui.set_selection(true);
251
-    while (wait_for_probe && !probe_triggered) { //loop while waiting to bed raise and probe trigger
250
+    while (wait_for_probe && !probe_triggered) { // loop while waiting to bed raise and probe trigger
252
       probe_triggered = PROBE_TRIGGERED();
251
       probe_triggered = PROBE_TRIGGERED();
253
       if (probe_triggered) {
252
       if (probe_triggered) {
254
         endstops.hit_on_purpose();
253
         endstops.hit_on_purpose();
269
     ui.goto_screen(_lcd_draw_probing);
268
     ui.goto_screen(_lcd_draw_probing);
270
     do {
269
     do {
271
       ui.refresh(LCDVIEW_REDRAW_NOW);
270
       ui.refresh(LCDVIEW_REDRAW_NOW);
272
-      _lcd_draw_probing();                                //update screen with # of good points
271
+      _lcd_draw_probing();                                             // update screen with # of good points
273
       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); // clearance
274
 
273
 
275
       _lcd_level_bed_corners_get_next_position();         // Select next corner coordinates
274
       _lcd_level_bed_corners_get_next_position();         // Select next corner coordinates
330
           GET_TEXT(MSG_BUTTON_NEXT), GET_TEXT(MSG_BUTTON_DONE)
329
           GET_TEXT(MSG_BUTTON_NEXT), GET_TEXT(MSG_BUTTON_DONE)
331
         , _lcd_goto_next_corner
330
         , _lcd_goto_next_corner
332
         , []{
331
         , []{
332
+            line_to_z(LEVEL_CORNERS_Z_HOP); // Raise Z off the bed when done
333
             TERN_(HAS_LEVELING, set_bed_leveling_enabled(leveling_was_active));
333
             TERN_(HAS_LEVELING, set_bed_leveling_enabled(leveling_was_active));
334
             ui.goto_previous_screen_no_defer();
334
             ui.goto_previous_screen_no_defer();
335
           }
335
           }

Loading…
取消
儲存