Move MBL functions into the class
This commit is contained in:
parent
eec97a5cf1
commit
be555e3578
4 changed files with 22 additions and 13 deletions
|
|
@ -25,6 +25,8 @@
|
|||
#if ENABLED(MESH_BED_LEVELING)
|
||||
|
||||
#include "mesh_bed_leveling.h"
|
||||
#include "Marlin.h"
|
||||
#include "serial.h"
|
||||
|
||||
mesh_bed_leveling mbl;
|
||||
|
||||
|
|
@ -49,4 +51,13 @@
|
|||
ZERO(z_values);
|
||||
}
|
||||
|
||||
void mesh_bed_leveling::report_mesh() {
|
||||
SERIAL_PROTOCOLLNPGM("Num X,Y: " STRINGIFY(GRID_MAX_POINTS_X) "," STRINGIFY(GRID_MAX_POINTS_Y));
|
||||
SERIAL_PROTOCOLPGM("Z offset: "); SERIAL_PROTOCOL_F(z_offset, 5);
|
||||
SERIAL_PROTOCOLLNPGM("\nMeasured points:");
|
||||
print_2d_array(GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y, 5,
|
||||
[](const uint8_t ix, const uint8_t iy) { return z_values[ix][iy]; }
|
||||
);
|
||||
}
|
||||
|
||||
#endif // MESH_BED_LEVELING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue