From df3e1edad5cbbc0cba317a5088bf9fdcfba85c0e Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Thu, 29 Mar 2012 19:36:03 +0200 Subject: [PATCH] fix some carriage return --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 2bcb3ec..ad94ba8 100644 --- a/main.c +++ b/main.c @@ -87,7 +87,7 @@ static void hexdump(const char *title, const void *buf, unsigned int len) #define LINE_LEN 80 char line[LINE_LEN]; /* space needed 8+16*3+3+16 == 75 */ - printf_P(PSTR("%s at [%p], len=%d\n"), title, data, len); + printf_P(PSTR("%s at [%p], len=%d\r\n"), title, data, len); ofs = 0; while (ofs < len) { /* format 1 line in the buffer, then use printk to print them */ @@ -627,6 +627,7 @@ int main(void) cmdline_init(); #ifndef USE_USB /* in usb mode, it's done in usb callback */ + printf_P(PSTR("\r\n")); rdline_newline(&xbeeboard.rdl, xbeeboard.prompt); #endif callout_manager_init(&cm, get_time_ms); -- 2.20.1