Define GRID_MAX_POINTS

This commit is contained in:
Scott Lahteine
2017-05-11 23:22:35 -05:00
parent b17e2d3dcd
commit 233f824dd6
5 changed files with 17 additions and 20 deletions

View File

@ -1430,17 +1430,13 @@ void kill_screen(const char* lcd_msg) {
#endif
// LCD probed points are from defaults
constexpr uint8_t total_probe_points =
#if ABL_GRID
(GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y)
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
int(3)
#elif ENABLED(AUTO_BED_LEVELING_UBL)
(GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y)
#elif ENABLED(MESH_BED_LEVELING)
(GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y)
constexpr uint8_t total_probe_points = (
#if ENABLED(AUTO_BED_LEVELING_3POINT)
3
#elif ABL_GRID || ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(MESH_BED_LEVELING)
GRID_MAX_POINTS
#endif
;
);
#if ENABLED(MESH_BED_LEVELING)