From 18409e43e4385b4c78eeceb5c875153a85a958cb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 6 Nov 2020 11:39:30 +0000 Subject: [PATCH] reference correct pads for sl180 pwm --- src/spec/ls180.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spec/ls180.py b/src/spec/ls180.py index 827e09c..5dababc 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -306,7 +306,9 @@ def pinparse(psp, pinspec): # PWM elif name.startswith('pwm'): name = name[:-4] - pad = ['p_' + name, name, name] + i = name[3:] + name2 = 'pwm(%s)' % i + pad = ['p_' + name, name2, name2] iopads.append(pad) else: pad = ['p_' + name, name, name] -- 2.30.2