Log more information about ignored packet

This commit is contained in:
notmasteryet 2025-08-21 22:12:21 -05:00
parent 1daf5aad1f
commit 1c329d9ffa

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);