瀏覽代碼

Fix undefined abl_points

Scott Lahteine 3 年之前
父節點
當前提交
ffbf7a9141
共有 1 個檔案被更改,包括 8 行新增8 行删除
  1. 8
    8
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 8
- 8
Marlin/src/gcode/bedlevel/abl/G29.cpp 查看文件

@@ -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

Loading…
取消
儲存