mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-26 23:40:18 +00:00
Prepare interface modularity
This commit is contained in:
parent
ec9bb33d16
commit
5d5abf352b
@ -550,6 +550,7 @@ class Reticulum:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
def interface_post_init(interface):
|
def interface_post_init(interface):
|
||||||
|
if interface != None:
|
||||||
if "outgoing" in c and c.as_bool("outgoing") == False:
|
if "outgoing" in c and c.as_bool("outgoing") == False:
|
||||||
interface.OUT = False
|
interface.OUT = False
|
||||||
else:
|
else:
|
||||||
@ -568,6 +569,7 @@ class Reticulum:
|
|||||||
if (("interface_enabled" in c) and c.as_bool("interface_enabled") == True) or (("enabled" in c) and c.as_bool("enabled") == True):
|
if (("interface_enabled" in c) and c.as_bool("interface_enabled") == True) or (("enabled" in c) and c.as_bool("enabled") == True):
|
||||||
interface_config = c
|
interface_config = c
|
||||||
interface_config["name"] = name
|
interface_config["name"] = name
|
||||||
|
interface_config["selected_interface_mode"] = interface_mode
|
||||||
interface_config["configured_bitrate"] = configured_bitrate
|
interface_config["configured_bitrate"] = configured_bitrate
|
||||||
|
|
||||||
if c["type"] == "AutoInterface":
|
if c["type"] == "AutoInterface":
|
||||||
@ -1130,6 +1132,14 @@ class Reticulum:
|
|||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def halt_interface(self, interface):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def resume_interface(self, interface):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def reload_interface(self, interface):
|
||||||
|
pass
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def should_use_implicit_proof():
|
def should_use_implicit_proof():
|
||||||
|
Loading…
Reference in New Issue
Block a user