|
@@ -98,19 +98,13 @@ static volatile bool endstop_z_probe_hit = false; // Leaving this in even if Z_P
|
98
|
98
|
#if HAS_Y_MAX
|
99
|
99
|
static bool old_y_max_endstop = false;
|
100
|
100
|
#endif
|
101
|
|
-#if HAS_Z_MIN
|
102
|
|
- static bool old_z_min_endstop = false;
|
103
|
|
-#endif
|
104
|
|
-#if HAS_Z_MAX
|
105
|
|
- static bool old_z_max_endstop = false;
|
106
|
|
-#endif
|
|
101
|
+
|
|
102
|
+static bool old_z_min_endstop = false;
|
|
103
|
+static bool old_z_max_endstop = false;
|
|
104
|
+
|
107
|
105
|
#ifdef Z_DUAL_ENDSTOPS
|
108
|
|
- // #if HAS_Z2_MIN
|
109
|
|
- static bool old_z2_min_endstop = false;
|
110
|
|
- // #endif
|
111
|
|
- // #if HAS_Z2_MAX
|
112
|
|
- static bool old_z2_max_endstop = false;
|
113
|
|
- // #endif
|
|
106
|
+ static bool old_z2_min_endstop = false;
|
|
107
|
+ static bool old_z2_max_endstop = false;
|
114
|
108
|
#endif
|
115
|
109
|
|
116
|
110
|
#ifdef Z_PROBE_ENDSTOP // No need to check for valid pin, SanityCheck.h already does this.
|