mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-26 09:56:25 -05:00
Added shared medium hints to interfaces
This commit is contained in:
parent
d25ea38c84
commit
26e3ca4f2b
11 changed files with 14 additions and 6 deletions
|
|
@ -282,12 +282,9 @@ class RNodeInterface(Interface):
|
|||
if (port != None or device_serial != None) and (enable_bluetooth or disable_bluetooth or pairing_mode):
|
||||
serial = None
|
||||
bluetooth_state = None
|
||||
if pairing_mode:
|
||||
bluetooth_state = 0x01
|
||||
elif enable_bluetooth:
|
||||
bluetooth_state = 0x01
|
||||
elif disable_bluetooth:
|
||||
bluetooth_state = 0x00
|
||||
if pairing_mode: bluetooth_state = 0x01
|
||||
elif enable_bluetooth: bluetooth_state = 0x01
|
||||
elif disable_bluetooth: bluetooth_state = 0x00
|
||||
|
||||
if port != None:
|
||||
RNS.log("Opening serial port "+port+"...")
|
||||
|
|
@ -518,6 +515,7 @@ class RNodeInterface(Interface):
|
|||
|
||||
self.packet_queue = []
|
||||
self.flow_control = flow_control
|
||||
self.shared_medium = True
|
||||
self.interface_ready = False
|
||||
self.announce_rate_target = None
|
||||
self.last_port_io = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue