Change RNode bluetooth usage at runtime

This commit is contained in:
Mark Qvist 2022-12-20 12:53:50 +01:00
parent bd53bef16e
commit 990cfb024a
1 changed files with 7 additions and 0 deletions

View File

@ -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()