fixed warnings: suggest parentheses around '&&' within '||'

pull/13476/head
talorion 2020-08-21 19:56:23 +02:00 committed by Gregor Mayramhof
parent d11ce60d83
commit 8d1553cf1a
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ 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++;