Sfoglia il codice sorgente

Align slightly in M114 detail

Scott Lahteine 4 anni fa
parent
commit
aecfc05748
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      Marlin/src/gcode/host/M114.cpp

+ 2
- 1
Marlin/src/gcode/host/M114.cpp Vedi File

@@ -38,11 +38,12 @@
38 38
     char str[12];
39 39
     LOOP_L_N(a, n) {
40 40
       SERIAL_CHAR(' ', axis_codes[a], ':');
41
+      if (pos[a] >= 0) SERIAL_CHAR(' ');
41 42
       SERIAL_ECHO(dtostrf(pos[a], 1, precision, str));
42 43
     }
43 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 48
   void report_xyz(const xyz_pos_t &pos, const uint8_t precision=3) {
48 49
     char str[12];

Loading…
Annulla
Salva