Browse Source

Merge pull request #1912 from thinkyhead/some_fixes

Enable all old_z_*_endstop vars for Z_DUAL_ENDSTOPS
Scott Lahteine 9 years ago
parent
commit
d57b23b1e3
1 changed files with 6 additions and 12 deletions
  1. 6
    12
      Marlin/stepper.cpp

+ 6
- 12
Marlin/stepper.cpp View File

98
 #if HAS_Y_MAX
98
 #if HAS_Y_MAX
99
   static bool old_y_max_endstop = false;
99
   static bool old_y_max_endstop = false;
100
 #endif
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
 #ifdef Z_DUAL_ENDSTOPS
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
 #endif
108
 #endif
115
 
109
 
116
 #ifdef Z_PROBE_ENDSTOP // No need to check for valid pin, SanityCheck.h already does this.
110
 #ifdef Z_PROBE_ENDSTOP // No need to check for valid pin, SanityCheck.h already does this.

Loading…
Cancel
Save