Improved RNode bluetooth hotplug

This commit is contained in:
Mark Qvist 2022-12-20 16:02:25 +01:00
parent 990cfb024a
commit c3b9172233

View File

@ -1578,7 +1578,7 @@ class SidebandCore():
# TODO: Add more intelligent selection here
target_device = self.owner_app.usb_devices[0]
if target_device or self.config["hw_rnode_bluetooth"]:
# if target_device or self.config["hw_rnode_bluetooth"]:
if target_device != None:
target_port = target_device["port"]
else:
@ -1600,8 +1600,6 @@ class SidebandCore():
RNS.log("Disallowing RNode bluetooth due to missing permission", RNS.LOG_DEBUG)
rnode_allow_bluetooth = False
if self.config["connect_rnode_ifac_netname"] == "":
ifac_netname = None
else: