From 264608fc161d7486c642fef252849bcbcfa87a47 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Wed, 25 Sep 2013 22:29:24 +1200 Subject: [PATCH] Gobble echoed character --- drivers/avr/ir_uart.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/avr/ir_uart.c b/drivers/avr/ir_uart.c index dc288c1..361f47f 100644 --- a/drivers/avr/ir_uart.c +++ b/drivers/avr/ir_uart.c @@ -49,8 +49,10 @@ ir_uart_putc (char ch) { usart1_putc (ch); - /* The character gets echoed on the UCFK4 so we should - probably gobble it here. */ + /* Gobble echoed character. The echoing is due to an electrical + common-path interference problem caused by a poor PCB layout of the + track powering the IR receiver. */ + ir_uart_getc (); return 1; }