revilor hace 6 años
padre
commit
b1f3dfab28
Se han modificado 1 ficheros con 11 adiciones y 13 borrados
  1. 11
    13
      Marlin/Marlin_main.cpp

+ 11
- 13
Marlin/Marlin_main.cpp Ver fichero

@@ -4004,23 +4004,21 @@ inline void gcode_G28(const bool always_home_all) {
4004 4004
         #endif
4005 4005
       }
4006 4006
 
4007
-    #else
4007
+    #endif
4008 4008
 
4009
-      if (home_all || homeX || homeY) {
4010
-        // Raise Z before homing any other axes and z is not already high enough (never lower z)
4011
-        destination[Z_AXIS] = Z_HOMING_HEIGHT;
4012
-        if (destination[Z_AXIS] > current_position[Z_AXIS]) {
4009
+    if (home_all || homeX || homeY) {
4010
+      // Raise Z before homing any other axes and z is not already high enough (never lower z)
4011
+      destination[Z_AXIS] = Z_HOMING_HEIGHT;
4012
+      if (destination[Z_AXIS] > current_position[Z_AXIS]) {
4013 4013
 
4014
-          #if ENABLED(DEBUG_LEVELING_FEATURE)
4015
-            if (DEBUGGING(LEVELING))
4016
-              SERIAL_ECHOLNPAIR("Raise Z (before homing) to ", destination[Z_AXIS]);
4017
-          #endif
4014
+        #if ENABLED(DEBUG_LEVELING_FEATURE)
4015
+          if (DEBUGGING(LEVELING))
4016
+            SERIAL_ECHOLNPAIR("Raise Z (before homing) to ", destination[Z_AXIS]);
4017
+        #endif
4018 4018
 
4019
-          do_blocking_move_to_z(destination[Z_AXIS]);
4020
-        }
4019
+        do_blocking_move_to_z(destination[Z_AXIS]);
4021 4020
       }
4022
-
4023
-    #endif
4021
+    }
4024 4022
 
4025 4023
     #if ENABLED(QUICK_HOME)
4026 4024
 

Loading…
Cancelar
Guardar