Skip to content

Commit 27baaaf

Browse files
authored
Merge pull request #8 from tannewt/remove_stop
Remove stop kwarg and use write_then_readinto.
2 parents a25146e + 03342b1 commit 27baaaf

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
@@ -123,7 +123,7 @@ def _read_u8(self, address):
123123
with self._device as i2c:
124124
self._BUFFER[0] = address & 0xFF
125125
i2c.write_then_readinto(self._BUFFER, self._BUFFER,
126-
out_end=1, in_end=1, stop=False)
126+
out_end=1, in_end=1)
127127
return self._BUFFER[0]
128128

129129
def _write_u8(self, address, val):
@@ -142,7 +142,7 @@ def read_raw(self):
142142
with self._device as i2c:
143143
self._BUFFER[0] = _GYRO_REGISTER_OUT_X_MSB
144144
i2c.write_then_readinto(self._BUFFER, self._BUFFER,
145-
out_end=1, stop=False)
145+
out_end=1)
146146
# Parse out the gyroscope data as 16-bit signed data.
147147
raw_x = struct.unpack_from('>h', self._BUFFER[0:2])[0]
148148
raw_y = struct.unpack_from('>h', self._BUFFER[2:4])[0]

0 commit comments

Comments
 (0)