{
unsigned char c;
while (c= *s++) {
- if (c == LF) ser_putc(CR);
+ if (c == '\n') ser_putc('\r');
ser_putc (c);
}
}
pos = 0;
while (pos <= len) {
c = ser_getc();
- if (c == CR) continue; // discard CR's
+ if (c == '\r') continue; // discard CR's
s[pos++] = c;
- if (c == LF) break; // NL terminates
+ if (c == '\n') break; // NL terminates
}
s[pos] = '\0'; // terminate string
}
unsigned char ser_can_rcv(void)
{
return rxcnt;
-}
\ No newline at end of file
+}