From 9827da9e0f1207dd25bc558adbc9468b79be614e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 11 Apr 2018 21:24:33 +0200 Subject: [PATCH] Cleanup --- Notes/Header format | 2 +- RNS/Interfaces/AX25KISSInterface.py | 1 - RNS/Reticulum.py | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Notes/Header format b/Notes/Header format index b0f8d39..9464591 100644 --- a/Notes/Header format +++ b/Notes/Header format @@ -3,7 +3,7 @@ header types type 1 00 One byte header, one 10 byte address field type 2 01 One byte header, two 10 byte address fields type 3 10 Reserved -type 4 11 Reserved for extended packet format +type 4 11 Reserved for extended header format propagation types diff --git a/RNS/Interfaces/AX25KISSInterface.py b/RNS/Interfaces/AX25KISSInterface.py index 866bc2d..035671e 100644 --- a/RNS/Interfaces/AX25KISSInterface.py +++ b/RNS/Interfaces/AX25KISSInterface.py @@ -119,7 +119,6 @@ class AX25KISSInterface(Interface): if preamble > 255: preamble = 255 - RNS.log("Setting preamble to "+str(preamble)+" "+chr(preamble)) kiss_command = KISS.FEND+KISS.CMD_TXDELAY+chr(preamble)+KISS.FEND written = self.serial.write(kiss_command) if written != len(kiss_command): diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index ac20333..07ad9f3 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -56,6 +56,10 @@ class Reticulum: value = self.config["logging"][option] if option == "loglevel": RNS.loglevel = int(value) + if RNS.loglevel < 0: + RNS.loglevel = 0 + if RNS.loglevel > 6: + RNS.loglevel = 6 for name in self.config["interfaces"]: c = self.config["interfaces"][name]