fix some carriage return
[protos/xbee-avr.git] / main.c
diff --git a/main.c b/main.c
index 2bcb3ec..ad94ba8 100644 (file)
--- 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);