Skip to content

Commit

Permalink
debug: Handle carriage returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 authored Dec 22, 2024
1 parent f133d5c commit 026ae90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hal/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ void debugPrint(const char *format, ...)
nextRow += FONT_HEIGHT+1;
nextCol = MARGIN;
}
else if (*s == '\r')
{
nextCol = MARGIN;
}
else
{
drawChar( *s, nextCol, nextRow, fgColour, bgColour );
Expand Down

0 comments on commit 026ae90

Please sign in to comment.