Browse Source

Fix undefined abl_points

Scott Lahteine 3 years ago
parent
commit
ffbf7a9141
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 8
- 8
Marlin/src/gcode/bedlevel/abl/G29.cpp View File

97
     int abl_probe_index;
97
     int abl_probe_index;
98
   #endif
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
   #if ABL_USES_GRID
108
   #if ABL_USES_GRID
101
 
109
 
102
     xy_int8_t meshCount;
110
     xy_int8_t meshCount;
113
       static constexpr xy_uint8_t grid_points = { GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y };
121
       static constexpr xy_uint8_t grid_points = { GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y };
114
     #endif
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
     #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
124
     #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
125
       float Z_offset;
125
       float Z_offset;
126
     #endif
126
     #endif

Loading…
Cancel
Save