Initialize state as RADIOLIB_ERR_NONE if avoiding ISR
This commit is contained in:
parent
42b981d63c
commit
12fd807052
1 changed files with 2 additions and 2 deletions
|
@ -250,8 +250,8 @@ int16_t CC1101::startTransmit(const uint8_t* data, size_t len, uint8_t addr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// set GDO0 mapping only if we aren't refilling the FIFO
|
// set GDO0 mapping only if we aren't refilling the FIFO
|
||||||
int16_t state
|
int16_t state = RADIOLIB_ERR_NONE;
|
||||||
if (len <= RADIOLIB_CC1101_FIFO_SIZE) {
|
if(len <= RADIOLIB_CC1101_FIFO_SIZE) {
|
||||||
state = SPIsetRegValue(RADIOLIB_CC1101_REG_IOCFG2, RADIOLIB_CC1101_GDOX_SYNC_WORD_SENT_OR_PKT_RECEIVED, 5, 0);
|
state = SPIsetRegValue(RADIOLIB_CC1101_REG_IOCFG2, RADIOLIB_CC1101_GDOX_SYNC_WORD_SENT_OR_PKT_RECEIVED, 5, 0);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue