From c239131ff52c54c9771ddfb80026f1827a808a23 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 10 Nov 2018 01:32:00 -0600 Subject: [PATCH] Use 'serial_spaces' in 'print_2d_array' --- Marlin/src/feature/bedlevel/bedlevel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/src/feature/bedlevel/bedlevel.cpp b/Marlin/src/feature/bedlevel/bedlevel.cpp index 5dc328c27..737a971fb 100644 --- a/Marlin/src/feature/bedlevel/bedlevel.cpp +++ b/Marlin/src/feature/bedlevel/bedlevel.cpp @@ -159,8 +159,7 @@ void reset_bed_level() { void print_2d_array(const uint8_t sx, const uint8_t sy, const uint8_t precision, element_2d_fn fn) { #ifndef SCAD_MESH_OUTPUT for (uint8_t x = 0; x < sx; x++) { - for (uint8_t i = 0; i < precision + 2 + (x < 10 ? 1 : 0); i++) - SERIAL_PROTOCOLCHAR(' '); + serial_spaces(precision + (x < 10 ? 3 : 2)); SERIAL_PROTOCOL(int(x)); } SERIAL_EOL();