From 33856ce17ccc2a4c1041d456f6d9c86eed4b1105 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Mon, 13 Jul 2015 14:52:21 +0200 Subject: Global logging: use \n for a new line instead \r\n in LOG_PRINTF Signed-off-by: Amir Hammad --- src/usart_helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usart_helpers.c') diff --git a/src/usart_helpers.c b/src/usart_helpers.c index 31a7556..4469b44 100644 --- a/src/usart_helpers.c +++ b/src/usart_helpers.c @@ -180,7 +180,7 @@ void usart_interrupt(void) if ( data != 3 && data != '\r' && data != '\n') { usart_fifo_push(data); } else { - LOG_PRINTF("\r\n>>"); + LOG_PRINTF("\n>>"); } } } @@ -270,7 +270,7 @@ void usart_call_cmd(struct usart_commands * commands) commands[i].callback(&command[command_argindex]); } } - usart_write("\r\n>>",4); + usart_write("\n>>",4); command_len = 0; command_argindex = 0; return; @@ -281,7 +281,7 @@ void usart_call_cmd(struct usart_commands * commands) } command_len = 0; command_argindex = 0; - LOG_PRINTF("INVALID COMMAND\r\n>>"); + LOG_PRINTF("INVALID COMMAND\n>>"); } #endif -- cgit