Skip to content

Commit

Permalink
COM1: use \n instead of \r (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Oct 31, 2023
1 parent 25592bb commit c959e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86_64/x86_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ static void x86_com1_handler(u32 irq)
{
char c = '\0';
serial_device_read(&com1_console.device, &c, 1);
if (c == '\r')
c = '\n';
console_putc(&com1_console.con, c);
pr_cont("%c", c);
if (c == '\r')
pr_cont("\n");
}
}

Expand Down

0 comments on commit c959e19

Please sign in to comment.