Explorar el Código

Tweak M114 detail

Scott Lahteine hace 6 años
padre
commit
125c572d97
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7
    2
      Marlin/src/gcode/host/M114.cpp

+ 7
- 2
Marlin/src/gcode/host/M114.cpp Ver fichero

@@ -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…
Cancelar
Guardar