diff --git a/RingStream.h b/RingStream.h index a3bb7d0..8b183aa 100644 --- a/RingStream.h +++ b/RingStream.h @@ -48,6 +48,9 @@ class RingStream : public Print { void flush(); void info(); byte readRawByte(); + inline byte peek() { + return _buffer[_pos_read]; + }; private: int _len; int _pos_write;