Improve UBL mesh report. Add M420 T, M421 N

This commit is contained in:
Scott Lahteine
2018-04-17 15:52:56 -05:00
parent 3c826e5d05
commit 0746aff595
4 changed files with 85 additions and 64 deletions

View File

@@ -42,6 +42,7 @@
* With AUTO_BED_LEVELING_UBL only:
*
* L[index] Load UBL mesh from index (0 is default)
* T[map] 0:Human-readable 1:CSV 2:"LCD" 4:Compact
*/
void GcodeSuite::M420() {
@@ -80,7 +81,7 @@ void GcodeSuite::M420() {
// L or V display the map info
if (parser.seen('L') || parser.seen('V')) {
ubl.display_map(0); // Currently only supports one map type
ubl.display_map(parser.byteval('T'));
SERIAL_ECHOLNPAIR("ubl.mesh_is_valid = ", ubl.mesh_is_valid());
SERIAL_ECHOLNPAIR("ubl.storage_slot = ", ubl.storage_slot);
}