Browse Source

Fix undefined abl_points

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
158b26b875
  1. 16
      Marlin/src/gcode/bedlevel/abl/G29.cpp

16
Marlin/src/gcode/bedlevel/abl/G29.cpp

@ -97,6 +97,14 @@ public:
int abl_probe_index; int abl_probe_index;
#endif #endif
#if ENABLED(AUTO_BED_LEVELING_LINEAR)
int abl_points;
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
static constexpr int abl_points = 3;
#elif ABL_USES_GRID
static constexpr int abl_points = GRID_MAX_POINTS;
#endif
#if ABL_USES_GRID #if ABL_USES_GRID
xy_int8_t meshCount; xy_int8_t meshCount;
@ -113,14 +121,6 @@ public:
static constexpr xy_uint8_t grid_points = { GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y }; static constexpr xy_uint8_t grid_points = { GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y };
#endif #endif
#if ENABLED(AUTO_BED_LEVELING_LINEAR)
int abl_points;
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
static constexpr int abl_points = 3;
#else
static constexpr int abl_points = GRID_MAX_POINTS;
#endif
#if ENABLED(AUTO_BED_LEVELING_BILINEAR) #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
float Z_offset; float Z_offset;
#endif #endif

Loading…
Cancel
Save