From f20604790833b512c5f9977d5684781926d50496 Mon Sep 17 00:00:00 2001 From: SebastianObi <54659208+SebastianObi@users.noreply.github.com> Date: Wed, 7 Jun 2023 17:42:44 +0200 Subject: [PATCH 1/2] Fixed missing init of 'r_stat_snr'. This this will otherwise lead to the error: AttributeError: 'RNodeInterface' object has no attribute 'r_stat_snr' --- RNS/Interfaces/RNodeInterface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RNS/Interfaces/RNodeInterface.py b/RNS/Interfaces/RNodeInterface.py index 187cc2a..0995ac1 100644 --- a/RNS/Interfaces/RNodeInterface.py +++ b/RNS/Interfaces/RNodeInterface.py @@ -157,6 +157,7 @@ class RNodeInterface(Interface): self.r_stat_rx = None self.r_stat_tx = None self.r_stat_rssi = None + self.r_stat_snr = None self.r_random = None self.packet_queue = [] From 6dcfe2cad663b23a4efb3e7fb435df6c4ff18302 Mon Sep 17 00:00:00 2001 From: SebastianObi <54659208+SebastianObi@users.noreply.github.com> Date: Wed, 7 Jun 2023 17:43:14 +0200 Subject: [PATCH 2/2] Fixed missing init of 'r_stat_snr'. This this will otherwise lead to the error: AttributeError: 'RNodeInterface' object has no attribute 'r_stat_snr' --- RNS/Interfaces/Android/RNodeInterface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RNS/Interfaces/Android/RNodeInterface.py b/RNS/Interfaces/Android/RNodeInterface.py index fdfdc35..e988d89 100644 --- a/RNS/Interfaces/Android/RNodeInterface.py +++ b/RNS/Interfaces/Android/RNodeInterface.py @@ -395,6 +395,7 @@ class RNodeInterface(Interface): self.r_stat_rx = None self.r_stat_tx = None self.r_stat_rssi = None + self.r_stat_snr = None self.r_random = None self.packet_queue = []