SerialTty just drop overflown stuff

This commit is contained in:
2024-03-23 00:46:33 +01:00
parent 35fb5c4200
commit 11f64d15ba

View File

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