This reverts commit
aba15c6379086057921e760758cb96ac7cdec744.
These are identical in the 2xxx and 5xxx series -- except for the
USB ProductID embedded in the firmware blobs, and we do need the
devices to come back with the ProductID identifying the model.
def find_model(filename):
filename = os.path.split(filename)[-1]
- m = re.search('^dso([25])[a-z0-9]+1.sys$', filename, re.I)
+ m = re.search('^dso([a-z0-9]+)1.sys$', filename, re.I)
if m:
- model = m.group(1) + 'xxx'
+ model = m.group(1).upper()
+ model = model.replace('X86', '').replace('AMD64', '').replace('IA64', '')
+ if model == '520A':
+ model = '5200A'
else:
model = 'unknown'