diff options
Diffstat (limited to 'gatchat/gatserver.c')
-rw-r--r-- | gatchat/gatserver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index f0fcb535..5106efaa 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -792,7 +792,8 @@ static enum ParserResult server_feed(GAtServer *server, break; case PARSER_STATE_GARBAGE: - if (byte == s3) { + /* Detect CR or HDLC frame marker flag */ + if (byte == s3 || byte == '~') { server->parser_state = PARSER_STATE_IDLE; i += 1; res = PARSER_RESULT_GARBAGE; |