We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a6c70 commit 099ef67Copy full SHA for 099ef67
1 file changed
src/helpers/radiolib/RadioLibWrappers.cpp
@@ -186,7 +186,10 @@ bool RadioLibWrapper::isChannelActive() {
186
if (_threshold == 0) return false; // interference check is disabled
187
188
int16_t result = performChannelScan();
189
- // scanChannel() leaves radio in standby — restart RX regardless of result
+ // scanChannel() triggers DIO interrupt (CAD done) which sets STATE_INT_READY
190
+ // via setFlag() ISR. Clear it before restarting RX so recvRaw() doesn't
191
+ // try to read a non-existent packet and count a spurious recv error.
192
+ state = STATE_IDLE;
193
startRecv();
194
return result != RADIOLIB_CHANNEL_FREE;
195
}
0 commit comments