diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2015-07-13 14:52:21 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2015-07-13 14:54:15 +0200 |
commit | 33856ce17ccc2a4c1041d456f6d9c86eed4b1105 (patch) | |
tree | 26481d4564e4839f7babf4d8fe685e102d3fd950 /src/usart_helpers.c | |
parent | 54f3b37a7176a905866085fb43276d8f1840f196 (diff) | |
download | secure-hid-33856ce17ccc2a4c1041d456f6d9c86eed4b1105.tar.gz secure-hid-33856ce17ccc2a4c1041d456f6d9c86eed4b1105.tar.bz2 secure-hid-33856ce17ccc2a4c1041d456f6d9c86eed4b1105.zip |
Global logging: use \n for a new line instead \r\n in LOG_PRINTF
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/usart_helpers.c')
-rw-r--r-- | src/usart_helpers.c | 6 |
1 files changed, 3 insertions, 3 deletions
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
|