Skip to content

RingBufferStream over underflow control . #811

Answered by pschatzmann
aqildad-create asked this question in Q&A
Discussion options

You must be logged in to vote

I think you talk nonsense: available() will provide the number of entries that are available in the buffer and availableForWrite() provides the number of entries that can still be written: So your buffer is full!

There is no surprise here as this is valid for all Arduino Streams like e.g. Serial
and it continues to be full as long as you don't start to read from it!

You can define the size in the constructor or call resize().

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants