Skip to content

Commit

Permalink
Print "\r\n" instead of "\n\r" in newline
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Felmeden <[email protected]>
  • Loading branch information
josh-felm committed Jan 19, 2024
1 parent 15be3b2 commit 785263f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ static void
putc(uint8_t ch)
{
while (!(*UART_REG(STAT) & STAT_TDRE)) { }
*UART_REG(TRANSMIT) = ch;
if (ch == '\n')
*UART_REG(TRANSMIT) = '\r';
*UART_REG(TRANSMIT) = ch;
}
#else
#error Board not defined
Expand Down

0 comments on commit 785263f

Please sign in to comment.