From c87d73045b7bb6f05c6e7c149ac07751e7ff963f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 23 Mar 2020 18:31:04 -0500 Subject: [PATCH] Fix extra M114 output line Fixes #17255 --- Marlin/src/module/motion.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index c1d8fceaa0..a0b59284fe 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -218,7 +218,6 @@ inline void report_more_positions() { inline void report_logical_position(const xyze_pos_t &rpos) { const xyze_pos_t lpos = rpos.asLogical(); SERIAL_ECHOPAIR_P(X_LBL, lpos.x, SP_Y_LBL, lpos.y, SP_Z_LBL, lpos.z, SP_E_LBL, lpos.e); - report_more_positions(); } // Report the real current position according to the steppers. @@ -237,10 +236,14 @@ void report_real_position() { #endif report_logical_position(npos); + report_more_positions(); } // Report the logical current position according to the most recent G-code command -void report_current_position() { report_logical_position(current_position); } +void report_current_position() { + report_logical_position(current_position); + report_more_positions(); +} /** * Report the logical current position according to the most recent G-code command.