[CC1101] Fixed Tx buffer flushed on Rx timeout (#520)

pull/530/head
jgromes 2022-05-17 17:31:51 +02:00
rodzic 57dcf48f6b
commit 206d49f802
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -155,7 +155,7 @@ int16_t CC1101::receive(uint8_t* data, size_t len) {
if(_mod->micros() - start > timeout) {
standby();
SPIsendCommand(RADIOLIB_CC1101_CMD_FLUSH_TX);
SPIsendCommand(RADIOLIB_CC1101_CMD_FLUSH_RX);
return(RADIOLIB_ERR_RX_TIMEOUT);
}
}