We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cbc818 commit dc15244Copy full SHA for dc15244
api/RingBuffer.h
@@ -55,7 +55,7 @@ class RingBufferN
55
56
private:
57
int nextIndex(int index);
58
- inline bool isEmpty() const { return (0 == available()); }
+ inline bool isEmpty() const { return (_iHead == iTail); }
59
};
60
61
typedef RingBufferN<SERIAL_BUFFER_SIZE> RingBuffer;
0 commit comments