1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 09:36:13 +01:00

repair peek

This commit is contained in:
Harald Barth 2022-07-31 10:41:27 +02:00
parent ddc0c5ac3c
commit 024c8fc199

View File

@ -48,7 +48,8 @@ class RingStream : public Print {
void flush();
void info();
byte readRawByte();
inline byte peek() {
inline int peek() {
if ((_pos_read==_pos_write) && !_overflow) return -1; // empty
return _buffer[_pos_read];
};
private: