Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions labgrid/resource/udev.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,16 +483,13 @@ class USBSDWireDevice(USBResource):
it is identified via USB using udev
"""

control_path = attr.ib(
default=None,
validator=attr.validators.optional(str)
)
disk_path = attr.ib(
default=None,
validator=attr.validators.optional(str)
)

def __attrs_post_init__(self):
self.control_serial = None
self.match['ID_VENDOR_ID'] = '04e8'
self.match['ID_MODEL_ID'] = '6001'
self.match['@ID_VENDOR_ID'] = '0424'
Expand All @@ -510,7 +507,7 @@ def avail(self, prop):
pass

# Overwrite the poll function. Only mark the SDWire as available if both
# paths are available.
# control_serial and disk_path are available.
def poll(self):
super().poll()
if self.device is not None and not self.avail:
Expand Down