Skip to content

Commit d8281fd

Browse files
committed
fix wrong reference & pylint
1 parent d57cf32 commit d8281fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_fxas21002c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def _read_u8(self, address):
122122
# Read an 8-bit unsigned value from the specified 8-bit address.
123123
with self._device as i2c:
124124
self._BUFFER[0] = address & 0xFF
125-
self._device.write_then_readinto(self._BUFFER, self._BUFFER,
126-
out_end=1, in_end=1, stop=False)
125+
i2c.write_then_readinto(self._BUFFER, self._BUFFER,
126+
out_end=1, in_end=1, stop=False)
127127
return self._BUFFER[0]
128128

129129
def _write_u8(self, address, val):

0 commit comments

Comments
 (0)