diff options
Diffstat (limited to 'src/gsmd/atcmd.c')
-rw-r--r-- | src/gsmd/atcmd.c | 2 |
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: |