Skip to content

Commit f29dccd

Browse files
committed
Update for linting
1 parent de12ea0 commit f29dccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_circuitplayground/express.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ def detect_taps(self):
146146
def detect_taps(self, value):
147147
self._detect_taps = value
148148
try:
149-
if value is 1:
149+
if value == 1:
150150
self._lis3dh.set_tap(value, 90, time_limit=4, time_latency=50, time_window=255)
151-
if value is 2:
151+
if value == 2:
152152
self._lis3dh.set_tap(value, 60, time_limit=10, time_latency=50, time_window=255)
153153
except AttributeError:
154154
pass

0 commit comments

Comments
 (0)