output CRLF instead of just LF to serial

This commit is contained in:
Ben Gras 2007-03-09 15:45:35 +00:00
parent 3fcf9fde61
commit f4b7a16f7b

View file

@ -48,8 +48,12 @@ int c; /* character to append */
* to the output driver if an END_OF_KMESS is encountered.
*/
if (c != END_OF_KMESS) {
if (do_serial_debug)
if (do_serial_debug) {
if(c == '\n')
ser_putc('\r');
ser_putc(c);
}
kmess.km_buf[kmess.km_next] = c; /* put normal char in buffer */
if (kmess.km_size < KMESS_BUF_SIZE)
kmess.km_size += 1;