mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
SerialTty just drop overflown stuff
This commit is contained in:
@@ -30,7 +30,8 @@ void SerialTty::this_pooler() {
|
||||
int r = read();
|
||||
while (r != -1) {
|
||||
read_something = true;
|
||||
buf.push_back((char) r);
|
||||
if (!buf.full())
|
||||
buf.push_back((char) r);
|
||||
r = read();
|
||||
}
|
||||
if (read_something)
|
||||
|
||||
Reference in New Issue
Block a user