Skip to content

Commit f789de3

Browse files
Update connectivity/drivers/cellular/QUECTEL/BC95/QUECTEL_BC95_CellularStack.cpp
Co-authored-by: Hugues Kamba <[email protected]>
1 parent fa0ab3e commit f789de3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,13 @@ nsapi_size_or_error_t QUECTEL_BC95_CellularStack::socket_sendto_impl(CellularSoc
225225

226226
// check for network congestion
227227
device_err_t err = _at.get_last_device_error();
228-
if ((err.errType == DeviceErrorTypeErrorCME &&
229-
(err.errCode == AT_UART_BUFFER_ERROR || err.errCode == AT_BACK_OFF_TIMER)) || err.errCode == AT_UPLINK_BUSY) {
228+
if (
229+
(
230+
err.errType == DeviceErrorTypeErrorCME
231+
&& (err.errCode == AT_UART_BUFFER_ERROR || err.errCode == AT_BACK_OFF_TIMER)
232+
)
233+
|| err.errCode == AT_UPLINK_BUSY
234+
) {
230235
if (socket->proto == NSAPI_UDP) {
231236
if (retry < 3) {
232237
retry++;

0 commit comments

Comments
 (0)