From f3a70865d42e7a9a1afdc81f25d2a2939a99f57b Mon Sep 17 00:00:00 2001 From: Freja Nordsiek Date: Mon, 14 Sep 2020 10:32:58 +0200 Subject: [PATCH] Changed definition of SERIAL_BUFFER_SIZE in cores/nRF5/RingBuffer.h to check if it is already defined. --- cores/nRF5/RingBuffer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/nRF5/RingBuffer.h b/cores/nRF5/RingBuffer.h index e212e6b6..cf8f77d3 100644 --- a/cores/nRF5/RingBuffer.h +++ b/cores/nRF5/RingBuffer.h @@ -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 {