From ddc0c5ac3c20c1344cecec624ea650055c920db1 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 31 Jul 2022 09:41:46 +0200 Subject: [PATCH] new ringstream peek inline --- RingStream.h | 3 +++ 1 file changed, 3 insertions(+) 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;