Skip to content

[BUG] Incorrect total count when probing for leveling #17770

@jan-gerard

Description

@jan-gerard

Bug Description

When probing less than the maximum number of points for bed leveling, (e.g. G29 P3, while I have defined #define GRID_MAX_POINTS_X 5), the display says still Probing Point 1/25, while it should say Probing Point 1/9.

My Configurations

#define MULTIPLE_PROBING 3
//#define EXTRA_PROBING    1
#define AUTO_BED_LEVELING_LINEAR
#define GRID_MAX_POINTS_X 5
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X

Steps to Reproduce

  1. Set #define GRID_MAX_POINTS_X 5 in Configuration.h
  2. Compile and upload firmware.
  3. Level bed with G29 P2.

Expected behavior:
Probing Point 1/4 ... Probing Point 2/4 ... Probing Point 3/4 ... Probing Point 4/4 ... done.

Actual behavior:
Probing Point 1/25 ... Probing Point 2/25 ... Probing Point 3/25 ... Probing Point 4/25 ... done.

Additional Information

I think that line 702 in G29.cpp should be changed from
ui.status_printf_P(0, PSTR(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_MESH), int(pt_index), int(GRID_MAX_POINTS));
to
ui.status_printf_P(0, PSTR(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_MESH), int(pt_index), int(abl_points));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fix IncludedA fix is included in the description

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions