fix meat pack internal buffer for multi serial
This commit is contained in:
parent
28a136d7f4
commit
bb6d718e19
@ -288,6 +288,7 @@ inline bool any_serial_data_available() {
|
|||||||
LOOP_L_N(p, NUM_SERIAL)
|
LOOP_L_N(p, NUM_SERIAL)
|
||||||
if (serial_data_available(p))
|
if (serial_data_available(p))
|
||||||
return true;
|
return true;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }
|
inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }
|
||||||
|
@ -49,7 +49,7 @@ void GcodeSuite::M28() {
|
|||||||
// Binary transfer mode
|
// Binary transfer mode
|
||||||
if ((card.flag.binary_mode = binary_mode)) {
|
if ((card.flag.binary_mode = binary_mode)) {
|
||||||
SERIAL_ECHO_MSG("Switching to Binary Protocol");
|
SERIAL_ECHO_MSG("Switching to Binary Protocol");
|
||||||
TERN_(HAS_MULTI_SERIAL, card.transfer_port_index = queue.ring_buffer.command_port());
|
TERN_(HAS_MULTI_SERIAL, card.transfer_port_index = queue.ring_buffer.command_port().index);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
card.openFileWrite(p);
|
card.openFileWrite(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user