From e104950ca41e2891a559ec625a8470801a902fd7 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Mon, 23 Dec 2024 18:54:15 +1300 Subject: [PATCH] update snr for a node when a packet is received --- src/js/Connection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/Connection.js b/src/js/Connection.js index c486bed..b78ac4d 100644 --- a/src/js/Connection.js +++ b/src/js/Connection.js @@ -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; });