Browse Source

Tweak M114 detail

Scott Lahteine 6 years ago
parent
commit
125c572d97
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      Marlin/src/gcode/host/M114.cpp

+ 7
- 2
Marlin/src/gcode/host/M114.cpp View File

@@ -80,8 +80,13 @@
80 80
     #endif
81 81
 
82 82
     SERIAL_PROTOCOLPGM("Stepper:");
83
-    const float step_count[XYZE] = { stepper.position(X_AXIS), stepper.position(Y_AXIS), stepper.position(Z_AXIS), stepper.position(E_AXIS) };
84
-    report_xyze(step_count, 4, 0);
83
+    LOOP_XYZE(i) {
84
+      SERIAL_CHAR(' ');
85
+      SERIAL_CHAR(axis_codes[i]);
86
+      SERIAL_CHAR(':');
87
+      SERIAL_PROTOCOL(stepper.position((AxisEnum)i));
88
+    }
89
+    SERIAL_EOL();
85 90
 
86 91
     #if IS_SCARA
87 92
       const float deg[XYZ] = {

Loading…
Cancel
Save