Skip to content

Commit 1db1e15

Browse files
committed
fix(modem): Fix DTE to post fragments to parsers for USB term
1 parent 3e8de3a commit 1db1e15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/esp_modem/src/esp_modem_dte.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ void DTE::set_command_callbacks()
7878
if (command_cb.process_line(data, 0, len)) {
7979
return true;
8080
}
81-
// cannot inflate and the processing hasn't finishes in the first iteration -> report a failure
82-
command_cb.give_up();
83-
return true;
81+
// cannot inflate and the processing hasn't finishes in the first iteration, but continue
82+
// (will post next fragments to the parser, since we might be just missing a last token or OK
83+
return false;
8484
#endif
8585
}
8686
// data == nullptr: Terminals which request users to read current data

0 commit comments

Comments
 (0)