Resurrect lf -> crlf translation that was lost when I dropped the stdio support.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@921 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-11-25 03:41:52 +00:00
parent a468abcdbf
commit 70baf31139

View File

@ -118,6 +118,9 @@ BetterStream::_vprintf (unsigned char in_progmem, const char *fmt, va_list ap)
c = GETBYTE (in_progmem, 1, fmt);
if (c != '%') break;
}
/* emit cr before lf to make most terminals happy */
if (c == '\n')
write('\r');
write(c);
}