summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-12-03 06:18:24 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-12-03 06:18:24 +0000
commitbd81bb31faa9922fb8578fcbe294df0498f0195e (patch)
tree03f6ac8a6747e7d785ff7caed694fb8f2b11232b /src
parent7008a5a1e5461bb89c6854b86d65e5089dcbb70f (diff)
gsmd: Make gsmd llparse_byte() to be more tolerant for modem EVB board(Sean Chiang)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3548 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/atcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsmd/atcmd.c b/src/gsmd/atcmd.c
index 2b5825a..4dc430f 100644
--- a/src/gsmd/atcmd.c
+++ b/src/gsmd/atcmd.c
@@ -113,7 +113,7 @@ static int llparse_byte(struct llparser *llp, char byte)
case LLPARSE_STATE_IDLE_CR:
if (byte == '\n')
llp->state = LLPARSE_STATE_IDLE_LF;
- else
+ else if (byte != '\r')
llp->state = LLPARSE_STATE_ERROR;
break;
case LLPARSE_STATE_IDLE_LF:
personal git repositories of Harald Welte. Your mileage may vary