Fix coding style

This commit is contained in:
Thomas Göttgens 2022-12-06 07:53:14 +01:00
parent 08de95e15e
commit 0aa59f6abc

View file

@ -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);