Skip to content

Commit 5ae40d5

Browse files
committed
Fix bug in _read function to use passed parameter rather than class variable
1 parent fda8c32 commit 5ae40d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_focaltouch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _read(self, register, length, irq_pin=None):
129129
with self._i2c as i2c:
130130

131131
if irq_pin is not None:
132-
while self._irq_pin.value:
132+
while irq_pin.value:
133133
pass
134134

135135
i2c.write(bytes([register & 0xFF]))

0 commit comments

Comments
 (0)