mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
sim_uart: rm LF to CRLF convertion
LF to CRLF has been converted in syslog framework Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
@@ -778,15 +778,7 @@ void sim_uartinit(void)
|
||||
void up_nputs(const char *str, size_t len)
|
||||
{
|
||||
#ifdef USE_DEVCONSOLE
|
||||
if (str[len - 1] == '\n')
|
||||
{
|
||||
uart_nputs(1, str, len - 1);
|
||||
uart_nputs(1, "\r\n", 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
uart_nputs(1, str, len);
|
||||
}
|
||||
uart_nputs(1, str, len);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user