Skip to content

Commit

Permalink
update snr for a node when a packet is received
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Dec 23, 2024
1 parent 9fa2f9f commit e104950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,10 @@ class Connection {
return;
}

// update last heard and hops away for the node we received packet from
// update last heard, hops away and snr for the node we received packet from
node.lastHeard = rxTime;
node.hopsAway = PacketUtils.getPacketHops(data);
node.snr = data.rxSnr;

});

Expand Down

0 comments on commit e104950

Please sign in to comment.