File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- RingBuffer.h - Ring buffer implementation
3
2
Copyright (c) 2014 Arduino. All right reserved.
4
3
5
4
This library is free software; you can redistribute it and/or
9
8
10
9
This library is distributed in the hope that it will be useful,
11
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- Lesser General Public License for more details.
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
+ See the GNU Lesser General Public License for more details.
14
13
15
14
You should have received a copy of the GNU Lesser General Public
16
15
License along with this library; if not, write to the Free Software
@@ -56,7 +55,7 @@ class RingBufferN
56
55
57
56
private:
58
57
int nextIndex (int index);
59
- inline bool isEmpty () const { return (_numElems == 0 ); }
58
+ inline bool isEmpty () const { return (0 == available () ); }
60
59
};
61
60
62
61
typedef RingBufferN<SERIAL_BUFFER_SIZE> RingBuffer;
You can’t perform that action at this time.
0 commit comments