Fix coding style
This commit is contained in:
parent
08de95e15e
commit
0aa59f6abc
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue