This commit is contained in:
Mark Qvist 2022-11-23 20:47:38 +01:00
parent 5739b33f06
commit c499706daf

View File

@ -1555,19 +1555,16 @@ class SidebandCore():
rnode_allow_bluetooth = False rnode_allow_bluetooth = False
if self.getpersistent("permissions.bluetooth"): if self.getpersistent("permissions.bluetooth"):
if self.config["hw_rnode_bluetooth"]: if self.config["hw_rnode_bluetooth"]:
# TODO: Remove RNS.log("Allowing RNode bluetooth", RNS.LOG_DEBUG)
RNS.log("Allowing RNode bluetooth")
rnode_allow_bluetooth = True rnode_allow_bluetooth = True
if self.config["hw_rnode_bt_device"] != None: if self.config["hw_rnode_bt_device"] != None:
bt_device_name = self.config["hw_rnode_bt_device"] bt_device_name = self.config["hw_rnode_bt_device"]
else: else:
# TODO: Remove RNS.log("Disallowing RNode bluetooth since config is disabled", RNS.LOG_DEBUG)
RNS.log("Disallowing RNode bluetooth since config is disabled")
rnode_allow_bluetooth = False rnode_allow_bluetooth = False
else: else:
# TODO: Remove RNS.log("Disallowing RNode bluetooth due to missing permission", RNS.LOG_DEBUG)
RNS.log("Disallowing RNode bluetooth due to missing permission")
rnode_allow_bluetooth = False rnode_allow_bluetooth = False