From: Martin Mares Date: Wed, 8 Aug 2018 17:49:53 +0000 (+0200) Subject: Meggy: \n -> \r\n X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a14bfcf89bcc559bb74b71e47afad5312f75c290;p=home-hw.git Meggy: \n -> \r\n --- 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);