Merge pull request #7718 from notmasteryet/err7info

Log more information about ignored packet
This commit is contained in:
Ben Meadors
2025-08-25 14:29:24 -05:00
committed by GitHub

View File

@@ -422,7 +422,8 @@ void RadioLibInterface::handleReceiveInterrupt()
} }
#endif #endif
if (state != RADIOLIB_ERR_NONE) { if (state != RADIOLIB_ERR_NONE) {
LOG_ERROR("Ignore received packet due to error=%d", state); LOG_ERROR("Ignore received packet due to error=%d (maybe to=0x%08x, from=0x%08x, flags=0x%02x)", state,
radioBuffer.header.to, radioBuffer.header.from, radioBuffer.header.flags);
rxBad++; rxBad++;
airTime->logAirtime(RX_ALL_LOG, xmitMsec); airTime->logAirtime(RX_ALL_LOG, xmitMsec);