Read the pad over Bluetooth first, and USB when it isn't paired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-23 00:02:08 +13:00
1 parent 2586ead4fa
commit 9c1ef6f2d4
2 files changed
+10 -10

No files matched your search

+5 -5
View File
@@ -35,13 +35,13 @@ client 131: 'qlcplus' [type=user,pid=57635]
"""
def test_usb_wins_over_bluetooth():
assert BOTH[pick_source(BOTH)] == "SINCO:SINCO SMC-PAD-Master 20:1"
def test_bluetooth_wins_over_usb():
assert BOTH[pick_source(BOTH)] == "SMC-PAD:SMC-PAD Bluetooth 128:0"
def test_bluetooth_when_unplugged():
names = [n for n in BOTH if "SINCO" not in n]
assert names[pick_source(names)] == "SMC-PAD:SMC-PAD Bluetooth 128:0"
def test_usb_when_not_paired():
names = [n for n in BOTH if "Bluetooth" not in n]
assert names[pick_source(names)] == "SINCO:SINCO SMC-PAD-Master 20:1"
def test_no_pad_and_never_our_own_port():