Browse Source

G-code Queue followup (#21214)

X-Ryl669 4 years ago
parent
commit
e65a84f6ea
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/sd/M28_M29.cpp

+ 1
- 1
Marlin/src/gcode/sd/M28_M29.cpp View File

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…
Cancel
Save