diff --git a/software/glasgow/device.py b/software/glasgow/device.py index 160b54f40..e9676d28e 100644 --- a/software/glasgow/device.py +++ b/software/glasgow/device.py @@ -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: @@ -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): diff --git a/vendor/libfx2 b/vendor/libfx2 index fc863fed8..c48fef307 160000 --- a/vendor/libfx2 +++ b/vendor/libfx2 @@ -1 +1 @@ -Subproject commit fc863fed8a13f6c2ba3184707286c2ba73b57a8f +Subproject commit c48fef307fda96618d76e600477fcdaf0f7d5cdb