From: Bert Vermeulen Date: Wed, 27 Jun 2012 17:22:40 +0000 (+0200) Subject: hantek-dso-extract: use 2xxx or 5xxx for firmware blobs X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=aba15c6379086057921e760758cb96ac7cdec744;p=sigrok-util.git hantek-dso-extract: use 2xxx or 5xxx for firmware blobs --- diff --git a/firmware/hantek-dso-extract.py b/firmware/hantek-dso-extract.py index e99236b..faa7712 100755 --- a/firmware/hantek-dso-extract.py +++ b/firmware/hantek-dso-extract.py @@ -29,12 +29,9 @@ import parsepe def find_model(filename): filename = os.path.split(filename)[-1] - m = re.search('^dso([a-z0-9]+)1.sys$', filename, re.I) + m = re.search('^dso([25])[a-z0-9]+1.sys$', filename, re.I) if m: - model = m.group(1).upper() - model = model.replace('X86', '').replace('AMD64', '').replace('IA64', '') - if model == '520A': - model = '5200A' + model = m.group(1) + 'xxx' else: model = 'unknown'