Browse Source

Fix declaration of old_z_probe_endstop.

Chris Roadfeldt 9 years ago
parent
commit
92eb8109ab
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      Marlin/stepper.cpp

+ 4
- 3
Marlin/stepper.cpp View File

@@ -97,9 +97,10 @@ static bool old_x_min_endstop = false,
97 97
               old_z2_min_endstop = false,
98 98
               old_z2_max_endstop = false;
99 99
             #endif
100
-            #if defined Z_PROBE_AND_ENDSTOP
101
-              old_z_probe_endstop = false;
102
-            #endif
100
+
101
+#ifdef Z_PROBE_AND_ENDSTOP
102
+static bool old_z_probe_endstop = false;
103
+#endif
103 104
 
104 105
 static bool check_endstops = true;
105 106
 

Loading…
Cancel
Save