Skip to content

Commit

Permalink
Update libfx2.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 12, 2018
1 parent dd524ab commit b5b5023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions software/glasgow/device.py
Expand Up @@ -36,7 +36,7 @@ class GlasgowDeviceError(FX2DeviceError):
class GlasgowDevice(FX2Device):
def __init__(self, firmware_file=None):
super().__init__(VID_QIHW, PID_GLASGOW)
if self._device.getDevice().getbcdDevice() == 0:
if self.usb.getDevice().getbcdDevice() == 0:
if firmware_file is None:
raise GlasgowDeviceError("Firmware is not uploaded")
else:
Expand All @@ -49,7 +49,7 @@ def __init__(self, firmware_file=None):
super().__init__(VID_QIHW, PID_GLASGOW)

# still not the right firmware?
if self._device.getDevice().getbcdDevice() == 0:
if self.usb.getDevice().getbcdDevice() == 0:
raise GlasgowDeviceError("Firmware upload failed")

def read_eeprom(self, idx, addr, length):
Expand Down
2 changes: 1 addition & 1 deletion vendor/libfx2

0 comments on commit b5b5023

Please sign in to comment.