I think I may have found one issue here:
|
size_t _head; |
|
size_t _numElements; |
Do these variables need to be declared "volatile"? When I compiled a sketch without the volatile declaration, the isEmpty() member function always came back false.
Does this suggest _buf should be declared volatile as well?
I think I may have found one issue here:
Embedded_RingBuf_CPP/src/RingBufCPP.h
Lines 214 to 215 in bfe49d1
Do these variables need to be declared "volatile"? When I compiled a sketch without the volatile declaration, the isEmpty() member function always came back false.
Does this suggest _buf should be declared volatile as well?