Skip to content

Commit

Permalink
Merge pull request #31 from adafruit/linting
Browse files Browse the repository at this point in the history
Changed to generator to satisfy pylint
  • Loading branch information
evaherrada committed Apr 19, 2021
2 parents 9cf20bd + 7b1625b commit b1e1fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_mpr121.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,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(12)])
return tuple(bool(touched >> i & 1) for i in range(12))

def _write_register_byte(self, register, value):
# Write a byte value to the specifier register address.
Expand Down

0 comments on commit b1e1fd0

Please sign in to comment.