mirror of https://github.com/ArduPilot/ardupilot
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:
parent
e2184615d9
commit
d45f67b3ef
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue