From d98f03f2452589d90ee8e5c17a95ada017c9dcce Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Fri, 9 Feb 2024 21:17:58 +0000 Subject: [PATCH] Update min and max values to support SX1280 --- RNS/Interfaces/RNodeInterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RNS/Interfaces/RNodeInterface.py b/RNS/Interfaces/RNodeInterface.py index 93a156e..4f0f75d 100644 --- a/RNS/Interfaces/RNodeInterface.py +++ b/RNS/Interfaces/RNodeInterface.py @@ -92,7 +92,7 @@ class RNodeInterface(Interface): MAX_CHUNK = 32768 FREQ_MIN = 137000000 - FREQ_MAX = 1020000000 + FREQ_MAX = 3000000000 RSSI_OFFSET = 157 @@ -194,11 +194,11 @@ class RNodeInterface(Interface): RNS.log("Invalid TX power configured for "+str(self), RNS.LOG_ERROR) self.validcfg = False - if (self.bandwidth < 7800 or self.bandwidth > 500000): + if (self.bandwidth < 7800 or self.bandwidth > 1625000): RNS.log("Invalid bandwidth configured for "+str(self), RNS.LOG_ERROR) self.validcfg = False - if (self.sf < 7 or self.sf > 12): + if (self.sf < 5 or self.sf > 12): RNS.log("Invalid spreading factor configured for "+str(self), RNS.LOG_ERROR) self.validcfg = False