Skip to content

Commit c363d08

Browse files
committed
tweak controller check, bluetooth controllers do not have phys
1 parent dced812 commit c363d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hhd/plugins/overlay/controllers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ def find_devices(
255255
# Skip HHD devices
256256
if "hhd" in dev.get("phys", "") or (
257257
# Allow bluetooth controllers that contain uhid and phys, while
258-
# blocking hhd devices that contain uhid but not phys
258+
# blocking hhd devices that contain uhid and a special mac address
259259
"uhid" in dev.get("sysfs", "")
260-
and not dev.get("phys", "")
260+
and "35:53:" not in dev.get("uniq", "")
261261
):
262262
continue
263263

0 commit comments

Comments
 (0)