mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +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