mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-05 13:50:14 +00:00
Cleanup
This commit is contained in:
parent
5f7694afdd
commit
9827da9e0f
@ -3,7 +3,7 @@ header types
|
|||||||
type 1 00 One byte header, one 10 byte address field
|
type 1 00 One byte header, one 10 byte address field
|
||||||
type 2 01 One byte header, two 10 byte address fields
|
type 2 01 One byte header, two 10 byte address fields
|
||||||
type 3 10 Reserved
|
type 3 10 Reserved
|
||||||
type 4 11 Reserved for extended packet format
|
type 4 11 Reserved for extended header format
|
||||||
|
|
||||||
|
|
||||||
propagation types
|
propagation types
|
||||||
|
@ -119,7 +119,6 @@ class AX25KISSInterface(Interface):
|
|||||||
if preamble > 255:
|
if preamble > 255:
|
||||||
preamble = 255
|
preamble = 255
|
||||||
|
|
||||||
RNS.log("Setting preamble to "+str(preamble)+" "+chr(preamble))
|
|
||||||
kiss_command = KISS.FEND+KISS.CMD_TXDELAY+chr(preamble)+KISS.FEND
|
kiss_command = KISS.FEND+KISS.CMD_TXDELAY+chr(preamble)+KISS.FEND
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
|
@ -56,6 +56,10 @@ class Reticulum:
|
|||||||
value = self.config["logging"][option]
|
value = self.config["logging"][option]
|
||||||
if option == "loglevel":
|
if option == "loglevel":
|
||||||
RNS.loglevel = int(value)
|
RNS.loglevel = int(value)
|
||||||
|
if RNS.loglevel < 0:
|
||||||
|
RNS.loglevel = 0
|
||||||
|
if RNS.loglevel > 6:
|
||||||
|
RNS.loglevel = 6
|
||||||
|
|
||||||
for name in self.config["interfaces"]:
|
for name in self.config["interfaces"]:
|
||||||
c = self.config["interfaces"][name]
|
c = self.config["interfaces"][name]
|
||||||
|
Loading…
Reference in New Issue
Block a user