Fix extra M114 output line

Fixes #17255
This commit is contained in:
Scott Lahteine 2020-03-23 18:31:04 -05:00
parent e3ebbe25e0
commit c87d73045b

View File

@ -218,7 +218,6 @@ inline void report_more_positions() {
inline void report_logical_position(const xyze_pos_t &rpos) { inline void report_logical_position(const xyze_pos_t &rpos) {
const xyze_pos_t lpos = rpos.asLogical(); 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); 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. // Report the real current position according to the steppers.
@ -237,10 +236,14 @@ void report_real_position() {
#endif #endif
report_logical_position(npos); report_logical_position(npos);
report_more_positions();
} }
// Report the logical current position according to the most recent G-code command // 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. * Report the logical current position according to the most recent G-code command.