From bd81bb31faa9922fb8578fcbe294df0498f0195e Mon Sep 17 00:00:00 2001 From: tick Date: Mon, 3 Dec 2007 06:18:24 +0000 Subject: 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 --- src/gsmd/atcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gsmd') 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: -- cgit v1.2.3