Commit ebb4e7e
Drop the USBPort claim workaround in PwrUSBDevice init
Problem: doInitializeDevice reached past the CommunicationPort abstraction to
call usb.util.claim_interface on the USBPort's pyusb device, purely to make a
macOS-claimed HID interface fail fast. With transport defaulting to "auto"
(HID when hidapi is present), the USBPort path is only taken when explicitly
requested on Linux, where the claim succeeds anyway, so the workaround is dead
weight that also broke the port abstraction.
Solution: Remove the isinstance/claim_interface block; open the selected port
uniformly. A missing device still surfaces as OSError/USBError from the port and
is skipped by the hardware tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 58f25f1 commit ebb4e7e
1 file changed
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 88 | + | |
97 | 89 | | |
98 | 90 | | |
99 | 91 | | |
| |||
0 commit comments