@@ -140,7 +140,7 @@ def _read_u8(self, address):
140
140
with self ._device as i2c :
141
141
self ._BUFFER [0 ] = address & 0xFF
142
142
i2c .write_then_readinto (self ._BUFFER , self ._BUFFER ,
143
- out_end = 1 , in_end = 1 , stop = False )
143
+ out_end = 1 , in_end = 1 )
144
144
return self ._BUFFER [0 ]
145
145
146
146
def _write_u8 (self , address , val ):
@@ -164,8 +164,7 @@ def read_raw_accel_mag(self):
164
164
with self ._device as i2c :
165
165
self ._BUFFER [0 ] = _FXOS8700_REGISTER_OUT_X_MSB
166
166
i2c .write_then_readinto (self ._BUFFER , self ._BUFFER ,
167
- out_end = 1 , in_end = 6 ,
168
- stop = False )
167
+ out_end = 1 , in_end = 6 )
169
168
accel_raw_x = struct .unpack_from ('>H' , self ._BUFFER [0 :2 ])[0 ]
170
169
accel_raw_y = struct .unpack_from ('>H' , self ._BUFFER [2 :4 ])[0 ]
171
170
accel_raw_z = struct .unpack_from ('>H' , self ._BUFFER [4 :6 ])[0 ]
@@ -179,8 +178,7 @@ def read_raw_accel_mag(self):
179
178
with self ._device as i2c :
180
179
self ._BUFFER [0 ] = _FXOS8700_REGISTER_MOUT_X_MSB
181
180
i2c .write_then_readinto (self ._BUFFER , self ._BUFFER ,
182
- out_end = 1 , in_end = 6 ,
183
- stop = False )
181
+ out_end = 1 , in_end = 6 )
184
182
mag_raw_x = struct .unpack_from ('>h' , self ._BUFFER [0 :2 ])[0 ]
185
183
mag_raw_y = struct .unpack_from ('>h' , self ._BUFFER [2 :4 ])[0 ]
186
184
mag_raw_z = struct .unpack_from ('>h' , self ._BUFFER [4 :6 ])[0 ]
0 commit comments