Update connectivity/drivers/cellular/QUECTEL/BC95/QUECTEL_BC95_CellularStack.cpp

Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
pull/13476/head
Gregor Mayramhof 2020-08-26 18:09:20 +02:00 committed by GitHub
parent fa0ab3e31f
commit f789de3399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -225,8 +225,13 @@ retry_send:
// check for network congestion
device_err_t err = _at.get_last_device_error();
if ((err.errType == DeviceErrorTypeErrorCME &&
(err.errCode == AT_UART_BUFFER_ERROR || err.errCode == AT_BACK_OFF_TIMER)) || err.errCode == AT_UPLINK_BUSY) {
if (
(
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 (retry < 3) {
retry++;