[CC1101] Fixed Tx buffer flushed on Rx timeout (#520)
This commit is contained in:
parent
57dcf48f6b
commit
206d49f802
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ int16_t CC1101::receive(uint8_t* data, size_t len) {
|
||||||
|
|
||||||
if(_mod->micros() - start > timeout) {
|
if(_mod->micros() - start > timeout) {
|
||||||
standby();
|
standby();
|
||||||
SPIsendCommand(RADIOLIB_CC1101_CMD_FLUSH_TX);
|
SPIsendCommand(RADIOLIB_CC1101_CMD_FLUSH_RX);
|
||||||
return(RADIOLIB_ERR_RX_TIMEOUT);
|
return(RADIOLIB_ERR_RX_TIMEOUT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue