fix single name
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 23 Jul 2018 06:49:21 +0000 (07:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 23 Jul 2018 06:49:21 +0000 (07:49 +0100)
src/bsv/interface_decl.py

index 0ae52abbdda82e0116eac5b6b07a13fbac714f5b..6edaa5ad0be7168d18510bf6f73caed8e3ef1334 100644 (file)
@@ -177,7 +177,10 @@ class Interface(PeripheralIface):
                     #{'name': 'twi_sda_in', 'action': False}
                     # NOTice - outen key is removed
             else:
-                _p['name_'] = p['name']
+                name = p['name']
+                if self.single:
+                    name = self.pname(name)
+                _p['name_'] = name
                 _p['name'] = self.pname(p['name'])
                 self.pins.append(Pin(**_p))