mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
add RinStream::info()
This commit is contained in:
parent
26fc11d1a6
commit
3aef54c0fe
@ -157,6 +157,10 @@ uint8_t RingStream::peekTargetMark() {
|
||||
return _buffer[_mark];
|
||||
}
|
||||
|
||||
void RingStream::info() {
|
||||
DIAG(F("Info len=%d count=%d pr=%d pw=%d m=%d"),_len, _count,_pos_read,_pos_write,_mark);
|
||||
}
|
||||
|
||||
bool RingStream::commit() {
|
||||
_flashInsert=NULL; // prepared for first read
|
||||
if (_overflow) {
|
||||
|
@ -47,6 +47,7 @@ class RingStream : public Print {
|
||||
bool commit();
|
||||
uint8_t peekTargetMark();
|
||||
void flush();
|
||||
void info();
|
||||
private:
|
||||
int read(byte advance);
|
||||
byte readRawByte(byte advance=1);
|
||||
|
Loading…
Reference in New Issue
Block a user