sim/serial2console: Remove \r workaround since no longer required and generating double carrier return in simulation.

This commit is contained in:
Florent Kermarrec 2021-03-06 17:36:21 +01:00
parent 7e3912aaef
commit a1e54671be
1 changed files with 0 additions and 5 deletions

View File

@ -76,11 +76,6 @@ void read_handler(int fd, short event, void *arg)
int i;
read_len = read(fd, buffer, 1024);
for(i = 0; i < read_len; i++) {
/* If we are reading a newline make sure its \r\n. */
if (buffer[i] == '\n') {
s->databuf[(s->data_start + s->datalen ) % 2048] = '\r';
s->datalen++;
}
s->databuf[(s->data_start + s->datalen ) % 2048] = buffer[i];
s->datalen++;
}