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