From ac47e8e13c54deace46c84816361240b5d688285 Mon Sep 17 00:00:00 2001 From: Elms Date: Tue, 19 Jun 2018 15:59:36 -0700 Subject: icebox_hlc2asc: update to support device by family --- icebox/icebox_hlc2asc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icebox/icebox_hlc2asc.py b/icebox/icebox_hlc2asc.py index a3e3b37..c26b173 100755 --- a/icebox/icebox_hlc2asc.py +++ b/icebox/icebox_hlc2asc.py @@ -535,13 +535,13 @@ class Main: 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': + if self.device.startswith('1k'): self.ic = icebox.iceconfig() self.ic.setup_empty_1k() - elif self.device == '8k': + elif self.device.startswith('8k'): self.ic = icebox.iceconfig() self.ic.setup_empty_8k() - elif self.device == '384': + elif self.device.startswith('384'): self.ic = icebox.iceconfig() self.ic.setup_empty_384() else: -- cgit v1.2.3