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)
This commit is contained in:
Ha Thach authored and GitHub committed 2020-09-14 20:44:59 +07:00
commit 92a3205c97
1 file changed
+2
+2
View File
@@ -25,7 +25,9 @@
// using a ring buffer (I think), in which head is the index of the location
// to which to write the next incoming character and tail is the index of the
// location from which to read.
#ifndef SERIAL_BUFFER_SIZE
#define SERIAL_BUFFER_SIZE 64
#endif
class RingBuffer
{