Browse Source

fix meat pack internal buffer for multi serial

Victor Mateus Oliveira 3 years ago
parent
commit
bb6d718e19
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      Marlin/src/gcode/queue.cpp
  2. 1
    1
      Marlin/src/gcode/sd/M28_M29.cpp

+ 1
- 0
Marlin/src/gcode/queue.cpp View File

288
   LOOP_L_N(p, NUM_SERIAL)
288
   LOOP_L_N(p, NUM_SERIAL)
289
     if (serial_data_available(p))
289
     if (serial_data_available(p))
290
       return true;
290
       return true;
291
+  return false;
291
 }
292
 }
292
 
293
 
293
 inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }
294
 inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }

+ 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.ring_buffer.command_port());
52
+      TERN_(HAS_MULTI_SERIAL, card.transfer_port_index = queue.ring_buffer.command_port().index);
53
     }
53
     }
54
     else
54
     else
55
       card.openFileWrite(p);
55
       card.openFileWrite(p);

Loading…
Cancel
Save