瀏覽代碼

Use SERIAL_ECHOLNPAIR for resend

Scott Lahteine 4 年之前
父節點
當前提交
28318f27d9
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      Marlin/src/gcode/queue.cpp

+ 1
- 2
Marlin/src/gcode/queue.cpp 查看文件

@@ -268,8 +268,7 @@ void GCodeQueue::flush_and_request_resend(const serial_index_t serial_ind) {
268 268
     PORT_REDIRECT(SERIAL_PORTMASK(serial_ind));   // Reply to the serial port that sent the command
269 269
   #endif
270 270
   SERIAL_FLUSH();
271
-  SERIAL_ECHOPGM(STR_RESEND);
272
-  SERIAL_ECHOLN(serial_state[serial_ind.index].last_N + 1);
271
+  SERIAL_ECHOLNPAIR(STR_RESEND, serial_state[serial_ind.index].last_N + 1);
273 272
   SERIAL_ECHOLNPGM(STR_OK);
274 273
 }
275 274
 

Loading…
取消
儲存