Skip to content

Commit f3a7086

Browse files
Changed definition of SERIAL_BUFFER_SIZE in cores/nRF5/RingBuffer.h to check if it is already defined.
1 parent dc2802a commit f3a7086

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)