serCgetc() Dropping Line Feed Characters?
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
I am a bit puzzled. Using a logic analyzser, I can see on the Rx pin that there is '\r\n>' in other words "carriage return", "linefeed", ">".
When I read the serial port as follows:
c = serCgetc();
while(c != -1)
{
printf("[0x%X]",c);
c = serCgetc();
}
All I get is:
[0xD][0x3E]
Does serCgetc() ignore line feeds? Am I missing something here?
Thanks,
Dan