mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Change RNode bluetooth usage at runtime
This commit is contained in:
parent
bd53bef16e
commit
990cfb024a
@ -1259,6 +1259,13 @@ class SidebandCore():
|
||||
while True:
|
||||
time.sleep(SidebandCore.SERVICE_JOB_INTERVAL)
|
||||
now = time.time()
|
||||
|
||||
if hasattr(self, "interface_rnode") and self.interface_rnode != None:
|
||||
if self.config["hw_rnode_bluetooth"]:
|
||||
self.interface_rnode.allow_bluetooth = True
|
||||
else:
|
||||
self.interface_rnode.allow_bluetooth = False
|
||||
|
||||
if self.getstate("wants.announce"):
|
||||
self.lxmf_announce()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user