Skip to content

Commit 7a30769

Browse files
authored
Fixed bug in gryo property
The gyro property now returns the gyroscope measurement instead of the magnetometer measurement.
1 parent e91510f commit 7a30769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_lsm9ds1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def gyro(self):
316316
"""The gyroscope X, Y, Z axis values as a 3-tuple of
317317
degrees/second values.
318318
"""
319-
raw = self.read_mag_raw()
319+
raw = self.read_gyro_raw()
320320
return map(lambda x: x * self._gyro_dps_digit, raw)
321321

322322
def read_temp_raw(self):

0 commit comments

Comments
 (0)