Skip to content

Commit

Permalink
Added line feed to newline for maaxboard LDR putc
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 18, 2024
1 parent 4c6baed commit 15be3b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loader/src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ putc(uint8_t ch)
{
while (!(*UART_REG(STAT) & STAT_TDRE)) { }
*UART_REG(TRANSMIT) = ch;
if (ch == '\n')
*UART_REG(TRANSMIT) = '\r';
}
#else
#error Board not defined
Expand Down

0 comments on commit 15be3b2

Please sign in to comment.