From 990cfb024a1cfaf671f3b49adca808c2732c1647 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 20 Dec 2022 12:53:50 +0100 Subject: [PATCH] Change RNode bluetooth usage at runtime --- sbapp/sideband/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 48dd9d1..fe095b6 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -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()