Skip to content

Commit

Permalink
tests: Revert a uart patch
Browse files Browse the repository at this point in the history
We do need the translation, as it's not one, but generation of \n\r

Signed-off-by: Michel Pollet <[email protected]>
  • Loading branch information
buserror committed Sep 14, 2011
1 parent 5a7463c commit a26a2e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/atmega88_uart_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ const struct avr_mmcu_vcd_trace_t _mytrace[] _MMCU_ = {
{ AVR_MCU_VCD_SYMBOL("GPIOR1"), .what = (void*)&GPIOR1, },
};

static int uart_putchar(char c, FILE *stream) {
#if 0 // don't want character translation for this test
static int uart_putchar(char c, FILE *stream)
{
if (c == '\n')
uart_putchar('\r', stream);
#endif
loop_until_bit_is_set(UCSR0A, UDRE0);
UDR0 = c;
return 0;
Expand Down

0 comments on commit a26a2e4

Please sign in to comment.