mirror of https://github.com/Desuuuu/klipper.git
serial: Increase AVR serial receive buffer
Increase the size of the serial receive buffer. With transmit rates of 250000 baud, it only takes a little over a millisecond to overflow the existing buffer. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
977aabe038
commit
8be8cb7a91
|
@ -12,10 +12,9 @@
|
|||
#include "sched.h" // DECL_INIT
|
||||
#include "irq.h" // irq_save
|
||||
|
||||
#define SERIAL_BUFFER_SIZE 96
|
||||
static char receive_buf[SERIAL_BUFFER_SIZE];
|
||||
static char receive_buf[192];
|
||||
static uint8_t receive_pos;
|
||||
static char transmit_buf[SERIAL_BUFFER_SIZE];
|
||||
static char transmit_buf[96];
|
||||
static uint8_t transmit_pos, transmit_max;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue