Commit c2c5ee2d authored by danh-arm's avatar danh-arm
Browse files

Merge pull request #142 from athoelke/at/fix-console_putc

Remove broken assertion in console_putc()
parents e869310f 0695dc49
......@@ -71,7 +71,12 @@ void console_init(unsigned long base_addr)
int console_putc(int c)
{
assert(uart_base);
/* If the console has not been initialized then return an error
* code. Asserting here would result in recursion and stack
* exhaustion
*/
if (!uart_base)
return -1;
if (c == '\n') {
WAIT_UNTIL_UART_FREE(uart_base);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment