Browse Source

Merge pull request #3541 from thinkyhead/rc_mbl_one_last_lift

Add a final lift, if configured, in Manual Bed Leveling
Scott Lahteine 8 years ago
parent
commit
5905ec5ba8
2 changed files with 10 additions and 2 deletions
  1. 5
    1
      Marlin/Marlin_main.cpp
  2. 5
    1
      Marlin/ultralcd.cpp

+ 5
- 1
Marlin/Marlin_main.cpp View File

2951
         }
2951
         }
2952
         else {
2952
         else {
2953
           // One last "return to the bed" (as originally coded) at completion
2953
           // One last "return to the bed" (as originally coded) at completion
2954
-          current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
2954
+          current_position[Z_AXIS] = MESH_HOME_SEARCH_Z
2955
+            #if MIN_Z_HEIGHT_FOR_HOMING > 0
2956
+              + MIN_Z_HEIGHT_FOR_HOMING
2957
+            #endif
2958
+          ;
2955
           line_to_current_position();
2959
           line_to_current_position();
2956
           st_synchronize();
2960
           st_synchronize();
2957
 
2961
 

+ 5
- 1
Marlin/ultralcd.cpp View File

960
             buzz(200, 659);
960
             buzz(200, 659);
961
             buzz(200, 698);
961
             buzz(200, 698);
962
           #endif
962
           #endif
963
-          current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
963
+          current_position[Z_AXIS] = MESH_HOME_SEARCH_Z
964
+            #if MIN_Z_HEIGHT_FOR_HOMING > 0
965
+              + MIN_Z_HEIGHT_FOR_HOMING
966
+            #endif
967
+          ;
964
           line_to_current(Z_AXIS);
968
           line_to_current(Z_AXIS);
965
           st_synchronize();
969
           st_synchronize();
966
           mbl.active = true;
970
           mbl.active = true;

Loading…
Cancel
Save