diff --git a/adafruit_fxos8700.py b/adafruit_fxos8700.py index df8c672..413158c 100644 --- a/adafruit_fxos8700.py +++ b/adafruit_fxos8700.py @@ -140,7 +140,7 @@ def _read_u8(self, address): with self._device as i2c: self._BUFFER[0] = address & 0xFF i2c.write_then_readinto(self._BUFFER, self._BUFFER, - out_end=1, in_end=1, stop=False) + out_end=1, in_end=1) return self._BUFFER[0] def _write_u8(self, address, val): @@ -164,8 +164,7 @@ def read_raw_accel_mag(self): with self._device as i2c: self._BUFFER[0] = _FXOS8700_REGISTER_OUT_X_MSB i2c.write_then_readinto(self._BUFFER, self._BUFFER, - out_end=1, in_end=6, - stop=False) + out_end=1, in_end=6) accel_raw_x = struct.unpack_from('>H', self._BUFFER[0:2])[0] accel_raw_y = struct.unpack_from('>H', self._BUFFER[2:4])[0] accel_raw_z = struct.unpack_from('>H', self._BUFFER[4:6])[0] @@ -179,8 +178,7 @@ def read_raw_accel_mag(self): with self._device as i2c: self._BUFFER[0] = _FXOS8700_REGISTER_MOUT_X_MSB i2c.write_then_readinto(self._BUFFER, self._BUFFER, - out_end=1, in_end=6, - stop=False) + out_end=1, in_end=6) mag_raw_x = struct.unpack_from('>h', self._BUFFER[0:2])[0] mag_raw_y = struct.unpack_from('>h', self._BUFFER[2:4])[0] mag_raw_z = struct.unpack_from('>h', self._BUFFER[4:6])[0]