git.droids-corp.org
/
protos
/
xbee-avr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
945a4a7
)
fix some carriage return
author
Fabrice Desclaux
<serpilliere@droids-corp.org>
Thu, 29 Mar 2012 17:36:03 +0000
(19:36 +0200)
committer
Fabrice Desclaux
<serpilliere@droids-corp.org>
Thu, 29 Mar 2012 17:36:03 +0000
(19:36 +0200)
main.c
patch
|
blob
|
history
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 */
#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 */
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 */
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);
rdline_newline(&xbeeboard.rdl, xbeeboard.prompt);
#endif
callout_manager_init(&cm, get_time_ms);