Skip to content

Commit

Permalink
Fix extra M114 output line
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and mathom committed Apr 16, 2020
1 parent d824404 commit 7b224d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Marlin/src/module/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 7b224d7

Please sign in to comment.