From 206d49f802b9aebe5b76338b0e66fe9b3ac88da2 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 17 May 2022 17:31:51 +0200 Subject: [PATCH] [CC1101] Fixed Tx buffer flushed on Rx timeout (#520) --- src/modules/CC1101/CC1101.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index eadd6a2b..d55d222d 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -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); } }