Skip to content

Commit

Permalink
Fix "Probing mesh point" message
Browse files Browse the repository at this point in the history
Closes #17770

Co-Authored-By: Jan-Gerard van der Toorn <[email protected]>
  • Loading branch information
thinkyhead and jan-gerard committed Jul 5, 2020
1 parent 6df927d commit ea520e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/bedlevel/abl/G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ G29_TYPE GcodeSuite::G29() {
// Avoid probing outside the round or hexagonal area
if (TERN0(IS_KINEMATIC, !probe.can_reach(probePos))) continue;

if (verbose_level) SERIAL_ECHOLNPAIR("Probing mesh point ", int(pt_index), "/", int(GRID_MAX_POINTS), ".");
if (verbose_level) SERIAL_ECHOLNPAIR("Probing mesh point ", int(pt_index), "/", abl_points, ".");
TERN_(HAS_DISPLAY, ui.status_printf_P(0, PSTR(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_MESH), int(pt_index), int(GRID_MAX_POINTS)));

measured_z = faux ? 0.001f * random(-100, 101) : probe.probe_at_point(probePos, raise_after, verbose_level);
Expand Down

3 comments on commit ea520e6

@thisiskeithb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thinkyhead: This breaks ABL: #18545

@NAPCAL
Copy link
Contributor

@NAPCAL NAPCAL commented on ea520e6 Jul 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an issue where AUTO_BED_LEVELING_LINEAR is not enabled and AUTO_BED_LEVELING_BILINEAR is enabled; abl_points throws an error during compile.
106986132_1154864258222515_470186714471537758_o

Only for debugging adding this code at the blank line (234) int constexpr abl_points = GRID_MAX_POINTS; // ADDED FOR DEBUG TAW
and the error doesn't show and fully compiles.

I was debugging this for another user, I am including his setup files.
G29 error.zip

I don't have his custom boot screen so that error will show.

@TheGadge
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for debugging adding this code at the blank line (234) int constexpr abl_points = GRID_MAX_POINTS; // ADDED FOR DEBUG TAW
and the error doesn't show and fully compiles.

Thanks so much.

Please sign in to comment.