소스 검색

Use 'serial_spaces' in 'print_2d_array'

Scott Lahteine 6 년 전
부모
커밋
c239131ff5
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    2
      Marlin/src/feature/bedlevel/bedlevel.cpp

+ 1
- 2
Marlin/src/feature/bedlevel/bedlevel.cpp 파일 보기

@@ -159,8 +159,7 @@ void reset_bed_level() {
159 159
   void print_2d_array(const uint8_t sx, const uint8_t sy, const uint8_t precision, element_2d_fn fn) {
160 160
     #ifndef SCAD_MESH_OUTPUT
161 161
       for (uint8_t x = 0; x < sx; x++) {
162
-        for (uint8_t i = 0; i < precision + 2 + (x < 10 ? 1 : 0); i++)
163
-          SERIAL_PROTOCOLCHAR(' ');
162
+        serial_spaces(precision + (x < 10 ? 3 : 2));
164 163
         SERIAL_PROTOCOL(int(x));
165 164
       }
166 165
       SERIAL_EOL();

Loading…
취소
저장