Pārlūkot izejas kodu

Align slightly in M114 detail

Scott Lahteine 4 gadus atpakaļ
vecāks
revīzija
aecfc05748
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      Marlin/src/gcode/host/M114.cpp

+ 2
- 1
Marlin/src/gcode/host/M114.cpp Parādīt failu

38
     char str[12];
38
     char str[12];
39
     LOOP_L_N(a, n) {
39
     LOOP_L_N(a, n) {
40
       SERIAL_CHAR(' ', axis_codes[a], ':');
40
       SERIAL_CHAR(' ', axis_codes[a], ':');
41
+      if (pos[a] >= 0) SERIAL_CHAR(' ');
41
       SERIAL_ECHO(dtostrf(pos[a], 1, precision, str));
42
       SERIAL_ECHO(dtostrf(pos[a], 1, precision, str));
42
     }
43
     }
43
     SERIAL_EOL();
44
     SERIAL_EOL();
44
   }
45
   }
45
-  inline void report_xyz(const xyze_pos_t &pos) { report_xyze(pos, 3); }
46
+  inline void report_xyz(const xyze_pos_t &pos) { report_xyze(pos, XYZ); }
46
 
47
 
47
   void report_xyz(const xyz_pos_t &pos, const uint8_t precision=3) {
48
   void report_xyz(const xyz_pos_t &pos, const uint8_t precision=3) {
48
     char str[12];
49
     char str[12];

Notiek ielāde…
Atcelt
Saglabāt