From 6029843c07d99051bead6cc5211f7a9deaf3b1c4 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 30 Dec 2019 10:26:04 -0700 Subject: [PATCH] Map newline to carriage return and newline --- src/board/system76/galp3-c/stdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/board/system76/galp3-c/stdio.c b/src/board/system76/galp3-c/stdio.c index 6537ec8..d0610c3 100644 --- a/src/board/system76/galp3-c/stdio.c +++ b/src/board/system76/galp3-c/stdio.c @@ -10,6 +10,7 @@ int putchar(int c) { unsigned char byte = (unsigned char)c; + if (byte == '\n') putchar('\r'); #ifdef SERIAL_DEBUGGER SBUF = byte; #endif