Skip to content

Commit 22897bb

Browse files
sandeepmistryfacchinm
authored andcommitted
Remove default template parameter and move to typedef
1 parent 03796a5 commit 22897bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/RingBuffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// location from which to read.
3030
#define SERIAL_BUFFER_SIZE 64
3131

32-
template <int N = SERIAL_BUFFER_SIZE>
32+
template <int N>
3333
class RingBufferT
3434
{
3535
public:
@@ -51,7 +51,7 @@ class RingBufferT
5151
int nextIndex(int index);
5252
};
5353

54-
typedef RingBufferT<> RingBuffer;
54+
typedef RingBufferT<SERIAL_BUFFER_SIZE> RingBuffer;
5555

5656

5757
template <int N>

0 commit comments

Comments
 (0)