Explorar el Código

Add HOMING_Z_WITH_PROBE conditional

Scott Lahteine hace 8 años
padre
commit
7e20448a2d
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2
    0
      Marlin/Conditionals_post.h
  2. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 0
Marlin/Conditionals_post.h Ver fichero

@@ -127,6 +127,8 @@
127 127
    */
128 128
   #define HAS_PROBING_PROCEDURE (ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST))
129 129
 
130
+  #define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
131
+
130 132
   // Boundaries for probing based on set limits
131 133
   #define MIN_PROBE_X (max(X_MIN_POS, X_MIN_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
132 134
   #define MAX_PROBE_X (min(X_MAX_POS, X_MAX_POS + X_PROBE_OFFSET_FROM_EXTRUDER))

+ 2
- 2
Marlin/Marlin_main.cpp Ver fichero

@@ -1586,7 +1586,7 @@ static void set_axis_is_at_home(AxisEnum axis) {
1586 1586
 
1587 1587
     if (axis == Z_AXIS) {
1588 1588
       #if HAS_BED_PROBE && Z_HOME_DIR < 0
1589
-        #if DISABLED(Z_MIN_PROBE_ENDSTOP)
1589
+        #if HOMING_Z_WITH_PROBE
1590 1590
           current_position[Z_AXIS] -= zprobe_zoffset;
1591 1591
           #if ENABLED(DEBUG_LEVELING_FEATURE)
1592 1592
             if (DEBUGGING(LEVELING)) {
@@ -2449,7 +2449,7 @@ static void homeaxis(AxisEnum axis) {
2449 2449
     home_dir(axis);
2450 2450
 
2451 2451
   // Homing Z towards the bed? Deploy the Z probe or endstop.
2452
-  #if HAS_BED_PROBE && Z_HOME_DIR < 0 && DISABLED(Z_MIN_PROBE_ENDSTOP)
2452
+  #if HOMING_Z_WITH_PROBE
2453 2453
     if (axis == Z_AXIS) {
2454 2454
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2455 2455
         if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");

Loading…
Cancelar
Guardar