Explorar el Código

Fix declaration of old_z_probe_endstop.

Chris Roadfeldt hace 9 años
padre
commit
92eb8109ab
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4
    3
      Marlin/stepper.cpp

+ 4
- 3
Marlin/stepper.cpp Ver fichero

@@ -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…
Cancelar
Guardar