1
0
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:
Harald Barth 2022-07-31 09:41:46 +02:00
parent 8916d1415f
commit ddc0c5ac3c

View File

@ -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;