Skip to content

Commit 6d09011

Browse files
committed
Fix missing argument in Mod8AI16B
Fixes #14
1 parent 40d8457 commit 6d09011

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/widgetlords/pi_spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, spare: int = 0):
5151
self.spare = int(spare) % 4
5252

5353
def set_channel(self, channel: int):
54-
widgetlords.pi_spi_8ai_16b_set_channel(channel)
54+
widgetlords.pi_spi_8ai_16b_set_channel(channel, self.spare)
5555

5656
def read(self):
5757
return widgetlords.pi_spi_8ai_16b_read(self.spare)

0 commit comments

Comments
 (0)