We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1bf6843 + bf99f28 commit 671190bCopy full SHA for 671190b
components/esp_modem/src/esp_modem_dte.cpp
@@ -347,6 +347,9 @@ void DTE::on_read(got_line_cb on_read_cb)
347
348
bool DTE::command_cb::process_line(uint8_t *data, size_t consumed, size_t len)
349
{
350
+ if (result != command_result::TIMEOUT) {
351
+ return false; // this line has been processed already (got OK or FAIL previously)
352
+ }
353
if (memchr(data + consumed, separator, len)) {
354
result = got_line(data, consumed + len);
355
if (result == command_result::OK || result == command_result::FAIL) {
0 commit comments