diff --git a/components/esp_modem/src/esp_modem_dte.cpp b/components/esp_modem/src/esp_modem_dte.cpp index 89cf64af0..e37298889 100644 --- a/components/esp_modem/src/esp_modem_dte.cpp +++ b/components/esp_modem/src/esp_modem_dte.cpp @@ -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