Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit 6b8a83c

Browse files
committed
USBTMC does not use altsettings, so don't set it
1 parent 1cf2077 commit 6b8a83c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

usbtmc/usbtmc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ def open(self):
283283

284284
if self.device.get_active_configuration().bConfigurationValue != self.cfg.bConfigurationValue:
285285
self.device.set_configuration(self.cfg)
286-
self.iface.set_altsetting()
286+
287+
# don't need to set altsetting - USBTMC devices have 1 altsetting as per the spec
287288

288289
# set quirk flags if necessary
289290
if self.device.idVendor == 0x1334:

0 commit comments

Comments
 (0)