Quellcode durchsuchen

Enable all old_z_*_endstop vars for Z_DUAL_ENDSTOPS

- Potentially addressing #1911
Scott Lahteine vor 9 Jahren
Ursprung
Commit
5dd87d2e74
1 geänderte Dateien mit 4 neuen und 11 gelöschten Zeilen
  1. 4
    11
      Marlin/stepper.cpp

+ 4
- 11
Marlin/stepper.cpp Datei anzeigen

@@ -98,19 +98,12 @@ 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
101
+
102
+#ifdef Z_DUAL_ENDSTOPS
102 103
   static bool old_z_min_endstop = false;
103
-#endif
104
-#if HAS_Z_MAX
105 104
   static bool old_z_max_endstop = false;
106
-#endif
107
-#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
105
+  static bool old_z2_min_endstop = false;
106
+  static bool old_z2_max_endstop = false;
114 107
 #endif
115 108
 
116 109
 #ifdef Z_PROBE_ENDSTOP // No need to check for valid pin, SanityCheck.h already does this.

Laden…
Abbrechen
Speichern