From 441ee3e53f230ba4051804a03071d4d8dad0bf70 Mon Sep 17 00:00:00 2001 From: BigTreeTech <38851044+bigtreetech@users.noreply.github.com> Date: Fri, 29 Nov 2019 20:53:32 +0800 Subject: [PATCH] Add 'M114 E' to get E position (M114_DETAIL) (#16026) --- Marlin/src/gcode/host/M114.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/src/gcode/host/M114.cpp b/Marlin/src/gcode/host/M114.cpp index 8b65f2983..68cbd2b8a 100644 --- a/Marlin/src/gcode/host/M114.cpp +++ b/Marlin/src/gcode/host/M114.cpp @@ -188,6 +188,10 @@ void GcodeSuite::M114() { report_current_position_detail(); return; } + if (parser.seen('E')) { + SERIAL_ECHOLNPAIR("Count E:", stepper.position(E_AXIS)); + return; + } #endif planner.synchronize();