mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
Change RNode bluetooth usage at runtime
This commit is contained in:
parent
bd53bef16e
commit
990cfb024a
@ -1259,6 +1259,13 @@ class SidebandCore():
|
|||||||
while True:
|
while True:
|
||||||
time.sleep(SidebandCore.SERVICE_JOB_INTERVAL)
|
time.sleep(SidebandCore.SERVICE_JOB_INTERVAL)
|
||||||
now = time.time()
|
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"):
|
if self.getstate("wants.announce"):
|
||||||
self.lxmf_announce()
|
self.lxmf_announce()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user