From a4f51689fb6d9a99caf7b9c24cbb6c1537dd4287 Mon Sep 17 00:00:00 2001 From: Ryan Barrie Date: Wed, 1 Aug 2018 21:48:59 -0500 Subject: [PATCH] Fixed exception caused by global reference. --- Libraries/RNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/RNode.py b/Libraries/RNode.py index 01129ad..1537034 100644 --- a/Libraries/RNode.py +++ b/Libraries/RNode.py @@ -412,7 +412,7 @@ class RNodeInterface(): 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 = ord(byte)-RSSI_OFFSET + self.r_stat_rssi = ord(byte)-self.RSSI_OFFSET elif (command == KISS.CMD_RANDOM): self.r_random = ord(byte) elif (command == KISS.CMD_ERROR):