doh, supposed to subtract 16 not throw the calculation away
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 9 Jun 2021 19:07:51 +0000 (20:07 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 9 Jun 2021 19:07:51 +0000 (20:07 +0100)
libresoc/ls180.py

index 744e83661134d94e560ef49ffe886267ffef7195..81858edd9ad026ae05187ed6c48d318a7fe60647 100644 (file)
@@ -156,7 +156,7 @@ def io():
 
     # not connected - eurgh have to adjust this to match the total pincount.
     num_nc = 24
-    num_nc - 16 # added 16 more power/gnd
+    num_nc -= 16 # added 16 more power/gnd
     num_nc += 4 # mspi1 comments out, litex problems 25mar2021
     num_nc += 6 # sd0 comments out, litex problems 25mar2021
     num_nc += 2 # pwm comments out, litex problems 25mar2021