diff --git a/pyftdi/eeprom.py b/pyftdi/eeprom.py index 7e692504..a52d347a 100644 --- a/pyftdi/eeprom.py +++ b/pyftdi/eeprom.py @@ -942,7 +942,10 @@ def _decode_eeprom(self): return name = None try: - name = Ftdi.DEVICE_NAMES[cfg['type']].replace('-', '') + type_ = cfg['type'] + if type_ == 0: + type_ = self.device_version + name = Ftdi.DEVICE_NAMES[type_].replace('-', '') if name.startswith('ft'): name = name[2:] func = getattr(self, f'_decode_{name}')