浏览代码

Fix extra M114 output line

Fixes #17255
Scott Lahteine 5 年前
父节点
当前提交
c87d73045b
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      Marlin/src/module/motion.cpp

+ 5
- 2
Marlin/src/module/motion.cpp 查看文件

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

正在加载...
取消
保存