From 878e67f69d2bfeb4580ea142cc3c3c825fe26b3f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 18 Jan 2024 23:01:54 +0100 Subject: [PATCH] Fixed invalid RSSI offset reference. Fixes #433. --- RNS/Utilities/rnodeconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Utilities/rnodeconf.py b/RNS/Utilities/rnodeconf.py index 0a352cb..25be6bb 100755 --- a/RNS/Utilities/rnodeconf.py +++ b/RNS/Utilities/rnodeconf.py @@ -521,7 +521,7 @@ class RNode(): if (len(command_buffer) == 4): self.r_stat_tx = ord(command_buffer[0]) << 24 | ord(command_buffer[1]) << 16 | ord(command_buffer[2]) << 8 | ord(command_buffer[3]) elif (command == KISS.CMD_STAT_RSSI): - self.r_stat_rssi = byte-RNodeInterface.RSSI_OFFSET + self.r_stat_rssi = byte-157 # RSSI Offset elif (command == KISS.CMD_STAT_SNR): self.r_stat_snr = int.from_bytes(bytes([byte]), byteorder="big", signed=True) * 0.25 elif (command == KISS.CMD_RANDOM):