mirror of https://github.com/ARMmbed/mbed-os.git
Update connectivity/drivers/cellular/QUECTEL/BC95/QUECTEL_BC95_CellularStack.cpp
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>pull/13476/head
parent
fa0ab3e31f
commit
f789de3399
|
@ -225,8 +225,13 @@ retry_send:
|
||||||
|
|
||||||
// check for network congestion
|
// check for network congestion
|
||||||
device_err_t err = _at.get_last_device_error();
|
device_err_t err = _at.get_last_device_error();
|
||||||
if ((err.errType == DeviceErrorTypeErrorCME &&
|
if (
|
||||||
(err.errCode == AT_UART_BUFFER_ERROR || err.errCode == AT_BACK_OFF_TIMER)) || err.errCode == AT_UPLINK_BUSY) {
|
(
|
||||||
|
err.errType == DeviceErrorTypeErrorCME
|
||||||
|
&& (err.errCode == AT_UART_BUFFER_ERROR || err.errCode == AT_BACK_OFF_TIMER)
|
||||||
|
)
|
||||||
|
|| err.errCode == AT_UPLINK_BUSY
|
||||||
|
) {
|
||||||
if (socket->proto == NSAPI_UDP) {
|
if (socket->proto == NSAPI_UDP) {
|
||||||
if (retry < 3) {
|
if (retry < 3) {
|
||||||
retry++;
|
retry++;
|
||||||
|
|
Loading…
Reference in New Issue