aboutsummaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'uart.c')
-rw-r--r--uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uart.c b/uart.c
index 2eebe16..6906a8c 100644
--- a/uart.c
+++ b/uart.c
@@ -44,8 +44,9 @@ void uartInit () {
/* Set frame format: 8 data, 1 stop bit, even parity */
UCSR0C = (1<<UPM01) | (0 << UPM00) | (0<<USBS0)|(3<<UCSZ00);
- /* redirect stdout */
+ /* redirect stdout/stderr */
stdout = &mystdout;
+ stderr = &mystdout;
}
#if 0