mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-06 05:24:50 -04:00
Prepare interface modularity
This commit is contained in:
parent
760ab981d0
commit
a762af035a
14 changed files with 43 additions and 31 deletions
|
@ -85,7 +85,7 @@ class KISSInterface(Interface):
|
|||
|
||||
super().__init__()
|
||||
|
||||
c = configuration
|
||||
c = Interface.get_config_obj(configuration)
|
||||
name = c["name"]
|
||||
preamble = int(c["preamble"]) if "preamble" in c else None
|
||||
txtail = int(c["txtail"]) if "txtail" in c else None
|
||||
|
|
|
@ -343,7 +343,7 @@ class RNodeInterface(Interface):
|
|||
|
||||
|
||||
def __init__(self, owner, configuration):
|
||||
c = configuration
|
||||
c = Interface.get_config_obj(configuration)
|
||||
name = c["name"]
|
||||
allow_bluetooth = c["allow_bluetooth"]
|
||||
target_device_name = c["target_device_name"]
|
||||
|
|
|
@ -75,7 +75,7 @@ class SerialInterface(Interface):
|
|||
|
||||
super().__init__()
|
||||
|
||||
c = configuration
|
||||
c = Interface.get_config_obj(configuration)
|
||||
name = c["name"]
|
||||
port = c["port"] if "port" in c else None
|
||||
speed = int(c["speed"]) if "speed" in c else 9600
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue