[FR] Suppress Generated Points Output on Adaptive Mesh Rapid Scan

The problem:
When using a bed scanner like Beacon, Cartographer, or BTT Eddy to generate an adaptive mesh & your mesh is 25,25 or 50,50 for example the console is spammed with hundreds of lines of probe points. This is less than ideal as you loose all console messages before the meshing action as they quickly drop off the bottom never to be seen again (unless log is viewed of course). Not only that but running & displaying the calculations is not really needed & is a drain on the host’s resources & cpu time.

Plus if you have to hit emergency stop for any reason while the host is running all these points you have to wait for it to finish displaying the entire list before you can restart the system.

Solution:
Enable users to add an option to the BED_MESH_CALIBRATE command to totally suppress generated mesh output to stop the problems above occurring & huge lists of numbers being created & displayed.

Usage:
So for example you could use SGPO=1 (Suppress Generated Points Output) to tell the system to omit points output when meshing.

Using SGPO=0 or the omission of SGPO=<0-1> entirely causes the normal & current behaviour of outputting the generated points to the console & log.

Command Example:
BED_MESH_CALIBRATE METHOD=rapid_scan ADAPTIVE=1 ADAPTIVE_MARGIN=10 SGPO=1

Results:
This is the normal view in the console with the current version of Klipper.

This would be the results with the proposed changes in place & the use of SGPO=1 option.

I have a file that works for this solution, I’ve not added the ability to have the system add the calculations to the log but it works as is for a simple proof of concept with a solution that can be carried forward by the dev team.

I’m by no means a pro coder so I’m sure this could be greatly be improved in short order but it works on my printer. My edited file is included below & is a super quick & simple change to bring this in.

bed_mesh.py.zip (18.2 KB)

Thanks for your time to read this, I appreciate all of your efforts & I hope my small contribution here could be possibly of value.