fix(modem): Fix DTE to post fragments to parsers for USB term

This commit is contained in:
David Cermak
2023-10-20 11:54:48 +02:00
parent 3e8de3af3a
commit 1db1e1508d

View File

@ -78,9 +78,9 @@ void DTE::set_command_callbacks()
if (command_cb.process_line(data, 0, len)) {
return true;
}
// cannot inflate and the processing hasn't finishes in the first iteration -> report a failure
command_cb.give_up();
return true;
// cannot inflate and the processing hasn't finishes in the first iteration, but continue
// (will post next fragments to the parser, since we might be just missing a last token or OK
return false;
#endif
}
// data == nullptr: Terminals which request users to read current data