Browse Source

Always define old_z, not always z2

Scott Lahteine 9 years ago
parent
commit
7336e6df07
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/stepper.cpp

+ 3
- 2
Marlin/stepper.cpp View File

99
   static bool old_y_max_endstop = false;
99
   static bool old_y_max_endstop = false;
100
 #endif
100
 #endif
101
 
101
 
102
+static bool old_z_min_endstop = false;
103
+static bool old_z_max_endstop = false;
104
+
102
 #ifdef Z_DUAL_ENDSTOPS
105
 #ifdef Z_DUAL_ENDSTOPS
103
-  static bool old_z_min_endstop = false;
104
-  static bool old_z_max_endstop = false;
105
   static bool old_z2_min_endstop = false;
106
   static bool old_z2_min_endstop = false;
106
   static bool old_z2_max_endstop = false;
107
   static bool old_z2_max_endstop = false;
107
 #endif
108
 #endif

Loading…
Cancel
Save