Browse Source

🐛 Fix Z endstop enum

Followup to 92dea8e6cc
Scott Lahteine 3 years ago
parent
commit
72b9f84723
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/endstops.h

+ 1
- 1
Marlin/src/module/endstops.h View File

81
   #if HAS_Y_MIN || HAS_Y_MAX
81
   #if HAS_Y_MIN || HAS_Y_MAX
82
     , Y_ENDSTOP = TERN(Y_HOME_TO_MAX, Y_MAX, Y_MIN)
82
     , Y_ENDSTOP = TERN(Y_HOME_TO_MAX, Y_MAX, Y_MIN)
83
   #endif
83
   #endif
84
-  #if HAS_Z_MIN || HAS_Z_MAX
84
+  #if HAS_Z_MIN || HAS_Z_MAX || HOMING_Z_WITH_PROBE
85
     , Z_ENDSTOP = TERN(Z_HOME_TO_MAX, Z_MAX, TERN(HOMING_Z_WITH_PROBE, Z_MIN_PROBE, Z_MIN))
85
     , Z_ENDSTOP = TERN(Z_HOME_TO_MAX, Z_MAX, TERN(HOMING_Z_WITH_PROBE, Z_MIN_PROBE, Z_MIN))
86
   #endif
86
   #endif
87
 };
87
 };

Loading…
Cancel
Save