Add a carriage return before printing a newline when we are called as stdout/stderr.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@547 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-09-24 07:32:38 +00:00
parent e2184615d9
commit d45f67b3ef
1 changed files with 2 additions and 0 deletions

View File

@ -255,6 +255,8 @@ FastSerial::_putchar(char c, FILE *stream)
FastSerial *fs;
fs = (FastSerial *)fdev_get_udata(stream);
if ('\n' == c)
fs->write('\r'); // ASCII translation on the cheap
fs->write(c);
return(0);
}