From a14bfcf89bcc559bb74b71e47afad5312f75c290 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 8 Aug 2018 19:49:53 +0200 Subject: [PATCH] Meggy: \n -> \r\n --- nucleo-test/Src/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nucleo-test/Src/test.c b/nucleo-test/Src/test.c index 0ea1e8f..1e1d584 100644 --- a/nucleo-test/Src/test.c +++ b/nucleo-test/Src/test.c @@ -11,6 +11,8 @@ typedef int16_t s16; void debug_putc(int c) { + if (c == '\n') + debug_putc('\r'); while (!LL_USART_IsActiveFlag_TXE(USART2)) ; LL_USART_TransmitData8(USART2, c); @@ -141,7 +143,7 @@ void run_test(void) for (;;) { - debug_printf(">>> %d\r\n", cnt); + debug_printf(">>> %d\n", cnt); cnt++; LL_GPIO_SetOutputPin(LD2_GPIO_Port, LD2_Pin); LL_GPIO_SetOutputPin(MEGGY1_GPIO_Port, MEGGY1_Pin); -- 2.39.2