From 0ecc96b7867d7d59d6ff45aba18eba5cc6bfd69c Mon Sep 17 00:00:00 2001 From: sualko Date: Thu, 31 Oct 2019 15:35:12 +0100 Subject: [PATCH] fix line break for debug output --- src/hal/hal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hal/hal.cpp b/src/hal/hal.cpp index 6b7bfd43..b7667ce7 100644 --- a/src/hal/hal.cpp +++ b/src/hal/hal.cpp @@ -322,6 +322,8 @@ void hal_printf_init() { #else // defined(__AVR) static int uart_putchar (char c, FILE *) { + if (c == '\n') + LMIC_PRINTF_TO.write('\r') ; LMIC_PRINTF_TO.write(c) ; return 0 ; }