Pārlūkot izejas kodu

Add a final lift, if configured, in Manual Bed Leveling

Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
c242bee449
2 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. 5
    1
      Marlin/Marlin_main.cpp
  2. 5
    1
      Marlin/ultralcd.cpp

+ 5
- 1
Marlin/Marlin_main.cpp Parādīt failu

@@ -2951,7 +2951,11 @@ inline void gcode_G28() {
2951 2951
         }
2952 2952
         else {
2953 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 2959
           line_to_current_position();
2956 2960
           st_synchronize();
2957 2961
 

+ 5
- 1
Marlin/ultralcd.cpp Parādīt failu

@@ -960,7 +960,11 @@ void lcd_cooldown() {
960 960
             buzz(200, 659);
961 961
             buzz(200, 698);
962 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 968
           line_to_current(Z_AXIS);
965 969
           st_synchronize();
966 970
           mbl.active = true;

Notiek ielāde…
Atcelt
Saglabāt