From 614feec316c95d28a9c77438add683b35bd9c9b4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 15 Mar 2012 23:41:28 -0400 Subject: [PATCH] Oops, build DigitalPort.write_mask with |= instead of &=. If you start with 0, &= will never change anything :p. --- pyafm/digital_port.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyafm/digital_port.py b/pyafm/digital_port.py index 0abe5c1..4c8a401 100644 --- a/pyafm/digital_port.py +++ b/pyafm/digital_port.py @@ -43,7 +43,7 @@ class DigitalPort (object): channel = self.subdevice.channel( index=index, factory=_DigitalChannel) channel.dio_config(c['direction']) - self.write_mask &= 1 << index + self.write_mask |= 1 << index self.channels.append(channel) self.name = c['name'] -- 2.26.2