Closed matthias-bs closed 2 years ago
In src/modules/CC1101/CC1101.cpp:
In CC1101::receive():
// wait for packet or timeout uint32_t start = _mod->micros(); while(!_mod->digitalRead(_mod->getIrq())) { _mod->yield(); if(_mod->micros() - start > timeout) { standby(); SPIsendCommand(RADIOLIB_CC1101_CMD_FLUSH_TX); return(RADIOLIB_ERR_RX_TIMEOUT); } }
From reading the code, I would have expected that the RX buffer should be flushed after a RX timeout, not the TX buffer.
That's most likely a copy-paste error from TX timeout handling.
Fixed in the latest commit, thanks for reporting!
In src/modules/CC1101/CC1101.cpp:
In CC1101::receive():
From reading the code, I would have expected that the RX buffer should be flushed after a RX timeout, not the TX buffer.