Skip to content

Commit da9bfe8

Browse files
sandeepmistryfacchinm
authored andcommitted
Increase the default serial buffer size to 256 (variant can override via define)
1 parent 4b24b9d commit da9bfe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/arduino/RingBuffer.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
// using a ring buffer (I think), in which head is the index of the location
2828
// to which to write the next incoming character and tail is the index of the
2929
// location from which to read.
30-
#define SERIAL_BUFFER_SIZE 64
30+
#ifndef SERIAL_BUFFER_SIZE
31+
#define SERIAL_BUFFER_SIZE 256
32+
#endif
3133

3234
template <int N>
3335
class RingBufferN

0 commit comments

Comments
 (0)