Quellcode durchsuchen

Fix undefined abl_points

Scott Lahteine vor 3 Jahren
Ursprung
Commit
ffbf7a9141
1 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
  1. 8
    8
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 8
- 8
Marlin/src/gcode/bedlevel/abl/G29.cpp Datei anzeigen

@@ -97,6 +97,14 @@ public:
97 97
     int abl_probe_index;
98 98
   #endif
99 99
 
100
+  #if ENABLED(AUTO_BED_LEVELING_LINEAR)
101
+    int abl_points;
102
+  #elif ENABLED(AUTO_BED_LEVELING_3POINT)
103
+    static constexpr int abl_points = 3;
104
+  #elif ABL_USES_GRID
105
+    static constexpr int abl_points = GRID_MAX_POINTS;
106
+  #endif
107
+
100 108
   #if ABL_USES_GRID
101 109
 
102 110
     xy_int8_t meshCount;
@@ -113,14 +121,6 @@ public:
113 121
       static constexpr xy_uint8_t grid_points = { GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y };
114 122
     #endif
115 123
 
116
-    #if ENABLED(AUTO_BED_LEVELING_LINEAR)
117
-      int abl_points;
118
-    #elif ENABLED(AUTO_BED_LEVELING_3POINT)
119
-      static constexpr int abl_points = 3;
120
-    #else
121
-      static constexpr int abl_points = GRID_MAX_POINTS;
122
-    #endif
123
-
124 124
     #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
125 125
       float Z_offset;
126 126
     #endif

Laden…
Abbrechen
Speichern