From 47c258030c6c182ac3797d93e09cb42853c635cb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 13 Jun 2018 12:31:37 +0100 Subject: [PATCH] skip blank-string entries --- src/bsv/actual_pinmux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bsv/actual_pinmux.py b/src/bsv/actual_pinmux.py index 356adb6..65473e0 100644 --- a/src/bsv/actual_pinmux.py +++ b/src/bsv/actual_pinmux.py @@ -61,6 +61,8 @@ def init(p, ifaces): # user-to-user. Plus this also reduces human-error as well :) for i in range(0, len(cell) - 1): cname = cell[i + 1] + if not cname: # skip blank entries, no need to test + continue temp = transfn(cname) x = ifaces.getifacetype(temp) #print (cname, temp, x) -- 2.30.2