Skip to content

Commit

Permalink
Do not recognize CONNECT <NUM> as a success response. (FactbirdHQ#202)
Browse files Browse the repository at this point in the history
This is required for AT commands where the modem responds with

CONNECT <NUM> followed by <NUM> bytes.
  • Loading branch information
ijager authored Feb 15, 2024
1 parent 2d40dde commit 74bc5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atat/src/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ pub mod parser {
nom::combinator::success(&b""[..]),
)),
tuple((
take_until_including("\r\nCONNECT"),
recognize(take_until_including("\r\n")),
take_until_including("\r\nCONNECT\r\n"),
nom::combinator::success(&b""[..]),
)),
))(buf)?;

Expand Down

0 comments on commit 74bc5e3

Please sign in to comment.