From aeee448d79b42da3df217f19fa514ab0aec90fda Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 23 Jul 2018 07:49:21 +0100 Subject: [PATCH] fix single name --- src/bsv/interface_decl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bsv/interface_decl.py b/src/bsv/interface_decl.py index 0ae52ab..6edaa5a 100644 --- a/src/bsv/interface_decl.py +++ b/src/bsv/interface_decl.py @@ -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)) -- 2.30.2