store SNR in received packets

This commit is contained in:
geeksville
2020-04-30 19:58:10 -07:00
parent 1fab9c5aac
commit 968a2d7fbc
6 changed files with 30 additions and 2 deletions

View File

@@ -185,6 +185,7 @@ void RadioLibInterface::handleReceiveInterrupt()
mp->from = h->from;
mp->to = h->to;
mp->id = h->id;
addReceiveMetadata(mp);
if (!pb_decode_from_bytes(payload, payloadLen, SubPacket_fields, p)) {
DEBUG_MSG("Invalid protobufs in received mesh packet, discarding.\n");
@@ -193,7 +194,7 @@ void RadioLibInterface::handleReceiveInterrupt()
} else {
// parsing was successful, queue for our recipient
mp->has_payload = true;
txGood++;
rxGood++;
deliverToReceiver(mp);
}