Skip to content

Commit a2332d6

Browse files
committed
Made pylint happy
1 parent 7ebf4e4 commit a2332d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_cap1188/cap1188.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __getitem__(self, key):
129129
def touched_pins(self):
130130
"""A tuple of touched state for all pins."""
131131
touched = self.touched()
132-
return tuple([bool(touched >> i & 0x01) for i in range(8)])
132+
return tuple(bool(touched >> i & 1) for i in range(8))
133133

134134
def touched(self):
135135
"""Return 8 bit value representing touch state of all pins."""

0 commit comments

Comments
 (0)