mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7033 from AriParkkila/cellular-at-fix
Cellular: Fix AT URC handler not to dismiss incoming charspull/6752/merge
commit
0f41831afd
|
@ -280,21 +280,19 @@ void ATHandler::process_oob()
|
||||||
if (!(_fileHandle->readable() || (_recv_pos < _recv_len))) {
|
if (!(_fileHandle->readable() || (_recv_pos < _recv_len))) {
|
||||||
break; // we have nothing to read anymore
|
break; // we have nothing to read anymore
|
||||||
}
|
}
|
||||||
_start_time = rtos::Kernel::get_ms_count(); // time to process next (potential) URC
|
|
||||||
} else if (mem_str(_recv_buff, _recv_len, CRLF, CRLF_LENGTH)) { // If no match found, look for CRLF and consume everything up to CRLF
|
} else if (mem_str(_recv_buff, _recv_len, CRLF, CRLF_LENGTH)) { // If no match found, look for CRLF and consume everything up to CRLF
|
||||||
consume_to_tag(CRLF, true);
|
consume_to_tag(CRLF, true);
|
||||||
} else {
|
} else {
|
||||||
if (!fill_buffer()) {
|
if (!fill_buffer()) {
|
||||||
|
reset_buffer(); // consume anything that could not be handled
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
_start_time = rtos::Kernel::get_ms_count();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_at_timeout = timeout;
|
_at_timeout = timeout;
|
||||||
}
|
}
|
||||||
tr_debug("process_oob exit");
|
tr_debug("process_oob exit");
|
||||||
|
|
||||||
flush(); // consume anything that could not be handled
|
|
||||||
|
|
||||||
unlock();
|
unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue