File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def _read_u8(self, address):
123
123
with self ._device as i2c :
124
124
self ._BUFFER [0 ] = address & 0xFF
125
125
i2c .write_then_readinto (self ._BUFFER , self ._BUFFER ,
126
- out_end = 1 , in_end = 1 , stop = False )
126
+ out_end = 1 , in_end = 1 )
127
127
return self ._BUFFER [0 ]
128
128
129
129
def _write_u8 (self , address , val ):
@@ -142,7 +142,7 @@ def read_raw(self):
142
142
with self ._device as i2c :
143
143
self ._BUFFER [0 ] = _GYRO_REGISTER_OUT_X_MSB
144
144
i2c .write_then_readinto (self ._BUFFER , self ._BUFFER ,
145
- out_end = 1 , stop = False )
145
+ out_end = 1 )
146
146
# Parse out the gyroscope data as 16-bit signed data.
147
147
raw_x = struct .unpack_from ('>h' , self ._BUFFER [0 :2 ])[0 ]
148
148
raw_y = struct .unpack_from ('>h' , self ._BUFFER [2 :4 ])[0 ]
You can’t perform that action at this time.
0 commit comments