From a2332d61a347fcf6e198764f936607af7e112bac Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 19 Mar 2021 14:44:23 -0400 Subject: [PATCH] Made pylint happy --- adafruit_cap1188/cap1188.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_cap1188/cap1188.py b/adafruit_cap1188/cap1188.py index 5b87145..c820d21 100644 --- a/adafruit_cap1188/cap1188.py +++ b/adafruit_cap1188/cap1188.py @@ -129,7 +129,7 @@ def __getitem__(self, key): def touched_pins(self): """A tuple of touched state for all pins.""" touched = self.touched() - return tuple([bool(touched >> i & 0x01) for i in range(8)]) + return tuple(bool(touched >> i & 1) for i in range(8)) def touched(self): """Return 8 bit value representing touch state of all pins."""