|
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 GNULesser 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 | intnextIndex(int index); |
59 | | -inlineboolisEmpty()const {return (_numElems ==0); } |
| 58 | +inlineboolisEmpty()const {return (0 ==available()); } |
60 | 59 | }; |
61 | 60 |
|
62 | 61 | typedef RingBufferN<SERIAL_BUFFER_SIZE> RingBuffer; |
|