mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-05 13:14:45 +00:00
fix rxGood counter
This commit is contained in:
parent
3eaa054c68
commit
a584cac827
@ -347,13 +347,13 @@ QueueStatus RadioLibInterface::getQueueStatus()
|
|||||||
airTime->logAirtime(RX_ALL_LOG, xmitMsec);
|
airTime->logAirtime(RX_ALL_LOG, xmitMsec);
|
||||||
} else {
|
} else {
|
||||||
const PacketHeader *h = (PacketHeader *)radiobuf;
|
const PacketHeader *h = (PacketHeader *)radiobuf;
|
||||||
// altered packed with "from == 0" can do Remote Node Administration without permission
|
rxGood++;
|
||||||
|
// altered packet with "from == 0" can do Remote Node Administration without permission
|
||||||
if (h->from == 0) {
|
if (h->from == 0) {
|
||||||
LOG_WARN("ignoring received packet without sender\n");
|
LOG_WARN("ignoring received packet without sender\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rxGood++;
|
|
||||||
|
|
||||||
// Note: we deliver _all_ packets to our router (i.e. our interface is intentionally promiscuous).
|
// Note: we deliver _all_ packets to our router (i.e. our interface is intentionally promiscuous).
|
||||||
// This allows the router and other apps on our node to sniff packets (usually routing) between other
|
// This allows the router and other apps on our node to sniff packets (usually routing) between other
|
||||||
// nodes.
|
// nodes.
|
||||||
|
Loading…
Reference in New Issue
Block a user