Increase serial rx buffer size for USB communication

This commit is contained in:
Knutwurst
2020-09-19 22:42:36 +02:00
parent 812bbb14f2
commit bc4bef1e2c

View File

@@ -1772,12 +1772,12 @@
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough. // Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
// To use flow control, set this buffer size to at least 1024 bytes. // To use flow control, set this buffer size to at least 1024 bytes.
// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048] // :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
#define RX_BUFFER_SIZE 256 #define RX_BUFFER_SIZE 512
#if RX_BUFFER_SIZE >= 1024 #if RX_BUFFER_SIZE >= 1024
// Enable to have the controller send XON/XOFF control characters to // Enable to have the controller send XON/XOFF control characters to
// the host to signal the RX buffer is becoming full. // the host to signal the RX buffer is becoming full.
//#define SERIAL_XON_XOFF #define SERIAL_XON_XOFF
#endif #endif
// Add M575 G-code to change the baud rate // Add M575 G-code to change the baud rate