Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fmc-4p-vna-revB' into fmc-8p-vna…
Browse files Browse the repository at this point in the history
…-revC
  • Loading branch information
moslehu committed Oct 18, 2023
2 parents 6acfb79 + 647efa7 commit b154f8f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions adi/adrf5720.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,8 @@ class adrf5720(attribute, context_manager):
def __init__(self, uri="", device_name=""):
context_manager.__init__(self, uri, self._device_name)

compatible_parts = [
"adrf5720",
"adrf5730",
"adrf5731",
]

self._ctrl = None

for device in self._ctx.devices:
if device.name in [device_name] + compatible_parts:
self._ctrl = device
break
self._device_name = device_name
self._ctrl = self._ctx.find_device(self._device_name)

# Raise an exception if the device isn't found
if not self._ctrl:
Expand Down

0 comments on commit b154f8f

Please sign in to comment.