Skip to content

Commit

Permalink
Fixed putchar per spth's suggestion. Closes Issue #57
Browse files Browse the repository at this point in the history
  • Loading branch information
pklapperich committed Oct 23, 2019
1 parent 12d7679 commit 730ebf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Firmware/radio/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,13 @@ serial_read_space(void)
return space;
}

void
putchar(char c) __reentrant
int
putchar(int c) __reentrant
{
if (c == '\n')
_serial_write('\r');
_serial_write(c);
return c;
}


Expand Down

0 comments on commit 730ebf5

Please sign in to comment.