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 78c29a0 commit 2db6d4eCopy full SHA for 2db6d4e
1 file changed
src/helpers/radiolib/RadioLibWrappers.cpp
@@ -178,7 +178,10 @@ bool RadioLibWrapper::isChannelActive() {
178
if (_threshold == 0) return false; // interference check is disabled
179
180
int16_t result = performChannelScan();
181
- // scanChannel() leaves radio in standby — restart RX regardless of result
+ // scanChannel() triggers DIO interrupt (CAD done) which sets STATE_INT_READY
182
+ // via setFlag() ISR. Clear it before restarting RX so recvRaw() doesn't
183
+ // try to read a non-existent packet and count a spurious recv error.
184
+ state = STATE_IDLE;
185
startRecv();
186
return result != RADIOLIB_CHANNEL_FREE;
187
}
0 commit comments