Browse Source

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
mission-4.1.18
DrZiplok@gmail.com 15 years ago
parent
commit
d45f67b3ef
  1. 2
      libraries/FastSerial/FastSerial.cpp

2
libraries/FastSerial/FastSerial.cpp

@ -255,6 +255,8 @@ FastSerial::_putchar(char c, FILE *stream) @@ -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…
Cancel
Save