Browse Source

Fix extra M114 output line

Fixes #17255
Scott Lahteine 5 years ago
parent
commit
c87d73045b
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/src/module/motion.cpp

+ 5
- 2
Marlin/src/module/motion.cpp View File

218
 inline void report_logical_position(const xyze_pos_t &rpos) {
218
 inline void report_logical_position(const xyze_pos_t &rpos) {
219
   const xyze_pos_t lpos = rpos.asLogical();
219
   const xyze_pos_t lpos = rpos.asLogical();
220
   SERIAL_ECHOPAIR_P(X_LBL, lpos.x, SP_Y_LBL, lpos.y, SP_Z_LBL, lpos.z, SP_E_LBL, lpos.e);
220
   SERIAL_ECHOPAIR_P(X_LBL, lpos.x, SP_Y_LBL, lpos.y, SP_Z_LBL, lpos.z, SP_E_LBL, lpos.e);
221
-  report_more_positions();
222
 }
221
 }
223
 
222
 
224
 // Report the real current position according to the steppers.
223
 // Report the real current position according to the steppers.
237
   #endif
236
   #endif
238
 
237
 
239
   report_logical_position(npos);
238
   report_logical_position(npos);
239
+  report_more_positions();
240
 }
240
 }
241
 
241
 
242
 // Report the logical current position according to the most recent G-code command
242
 // Report the logical current position according to the most recent G-code command
243
-void report_current_position() { report_logical_position(current_position); }
243
+void report_current_position() {
244
+  report_logical_position(current_position);
245
+  report_more_positions();
246
+}
244
 
247
 
245
 /**
248
 /**
246
  * Report the logical current position according to the most recent G-code command.
249
  * Report the logical current position according to the most recent G-code command.

Loading…
Cancel
Save