瀏覽代碼

G-code Queue followup (#21214)

X-Ryl669 4 年之前
父節點
當前提交
e65a84f6ea
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/gcode/sd/M28_M29.cpp

+ 1
- 1
Marlin/src/gcode/sd/M28_M29.cpp 查看文件

49
     // Binary transfer mode
49
     // Binary transfer mode
50
     if ((card.flag.binary_mode = binary_mode)) {
50
     if ((card.flag.binary_mode = binary_mode)) {
51
       SERIAL_ECHO_MSG("Switching to Binary Protocol");
51
       SERIAL_ECHO_MSG("Switching to Binary Protocol");
52
-      TERN_(HAS_MULTI_SERIAL, card.transfer_port_index = queue.port[queue.index_r]);
52
+      TERN_(HAS_MULTI_SERIAL, card.transfer_port_index = queue.ring_buffer.command_port());
53
     }
53
     }
54
     else
54
     else
55
       card.openFileWrite(p);
55
       card.openFileWrite(p);

Loading…
取消
儲存