1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 08:06:13 +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 flush();
void info(); void info();
byte readRawByte(); byte readRawByte();
inline byte peek() {
return _buffer[_pos_read];
};
private: private:
int _len; int _len;
int _pos_write; int _pos_write;