ソースを参照

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.

読み込み中…
キャンセル
保存