diff --git a/src/modules/SX128x/SX128x.cpp b/src/modules/SX128x/SX128x.cpp index a9e2deb0..32a2970e 100644 --- a/src/modules/SX128x/SX128x.cpp +++ b/src/modules/SX128x/SX128x.cpp @@ -531,8 +531,9 @@ int16_t SX128x::startReceive(uint16_t timeout) { // set DIO mapping uint16_t mask = RADIOLIB_SX128X_IRQ_RX_DONE; - if(timeout != RADIOLIB_SX128X_RX_TIMEOUT_INF) + if(timeout != RADIOLIB_SX128X_RX_TIMEOUT_INF) { mask |= RADIOLIB_SX128X_IRQ_RX_TX_TIMEOUT; + } int16_t state = setDioIrqParams(RADIOLIB_SX128X_IRQ_RX_DONE | RADIOLIB_SX128X_IRQ_RX_TX_TIMEOUT | RADIOLIB_SX128X_IRQ_CRC_ERROR | RADIOLIB_SX128X_IRQ_HEADER_ERROR, mask); RADIOLIB_ASSERT(state);