Skip to content

Commit 92a3205

Browse files
authored
Merge pull request #575 from frejanordsiek/allow-serial-buffer-size-change
Make definition of SERIAL_BUFFER_SIZE check if it is already defined (allows easier UART buffer size adjustment)
2 parents dc2802a + f3a7086 commit 92a3205

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/nRF5/RingBuffer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
// using a ring buffer (I think), in which head is the index of the location
2626
// to which to write the next incoming character and tail is the index of the
2727
// location from which to read.
28+
#ifndef SERIAL_BUFFER_SIZE
2829
#define SERIAL_BUFFER_SIZE 64
30+
#endif
2931

3032
class RingBuffer
3133
{

0 commit comments

Comments
 (0)