skip blank-string entries
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 Jun 2018 11:31:37 +0000 (12:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 Jun 2018 11:31:37 +0000 (12:31 +0100)
src/bsv/actual_pinmux.py

index 356adb62faac5a4d8df3131c74e09d3821e657d5..65473e099acb2cb10e6fda2ff4bfce2e200a28af 100644 (file)
@@ -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)