Merge pull request #156 from mithro/hlc-devices

icebox_hlc2asc: Accept device types such as HX1K
This commit is contained in:
Clifford Wolf 2018-06-13 13:42:18 +02:00 committed by GitHub
commit 90d3725119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -532,7 +532,9 @@ class Main:
and len(fields[1]) >= 2 and fields[1][0] == '"' \
and fields[1][-1] == '"' \
and self.ic is None and self.device is None:
self.device = fields[1][1:-1]
self.device = fields[1][1:-1].lower()
if self.device.startswith('lp') or self.device.startswith('hx'):
self.device = self.device[2:]
if self.device == '1k':
self.ic = icebox.iceconfig()
self.ic.setup_empty_1k()