Skip to content

Commit 27b6d39

Browse files
authored
Merge pull request #20 from adafruit/linting
Switched to using a generator
2 parents fc67164 + 0c69353 commit 27b6d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_focaltouch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def touches(self):
110110

111111
for i in range(2):
112112
point_data = data[i * 6 + 3 : i * 6 + 9]
113-
if all([i == 0xFF for i in point_data]):
113+
if all(i == 255 for i in point_data):
114114
continue
115115
# print([hex(i) for i in point_data])
116116
x, y, weight, misc = struct.unpack(">HHBB", point_data)

0 commit comments

Comments
 (0)