mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
new ringstream peek inline
This commit is contained in:
parent
8916d1415f
commit
ddc0c5ac3c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user