Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
4c5e0845
Commit
4c5e0845
authored
May 17, 2013
by
Henrik Nordstrom
Browse files
felboot: Correct line output
parent
755ff89d
Changes
1
Show whitespace changes
Inline
Side-by-side
felboot/main.c
View file @
4c5e0845
...
...
@@ -66,12 +66,17 @@ int status_led_set(void)
#ifndef NO_PRINTF
int
putchar
(
int
ch
)
{
return
uart_putc
(
ch
);
if
(
ch
==
'\n'
)
uart_putc
(
'\r'
);
uart_putc
(
ch
);
return
0
;
}
int
puts
(
const
char
*
str
)
{
return
uart_puts
(
str
);
while
(
*
str
)
putchar
(
*
str
++
);
return
0
;
}
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment