We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0aefe7 + 56e6afb commit 33fdb76Copy full SHA for 33fdb76
pyftdi/doc/authors.rst
@@ -52,3 +52,4 @@ Contributors
52
* Roman Dobrodii
53
* Mark Mentovai
54
* Alessandro Zini
55
+ * Sjoerd Simons
pyftdi/eeprom.py
@@ -942,7 +942,10 @@ def _decode_eeprom(self):
942
return
943
name = None
944
try:
945
- name = Ftdi.DEVICE_NAMES[cfg['type']].replace('-', '')
+ type_ = cfg['type']
946
+ if type_ == 0:
947
+ type_ = self.device_version
948
+ name = Ftdi.DEVICE_NAMES[type_].replace('-', '')
949
if name.startswith('ft'):
950
name = name[2:]
951
func = getattr(self, f'_decode_{name}')
0 commit comments