Skip to content

Commit

Permalink
local pylint didn't catch this bug
Browse files Browse the repository at this point in the history
  • Loading branch information
siddacious committed Dec 5, 2019
1 parent d5a4574 commit b55bfe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_lsm6dsox.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,12 @@ def accelerometer_data_rate(self, value):
@property
def gyro_data_rate(self):
"""Select the rate at which the gyro takes measurements. Must be a `Rate`"""
return self._gyro_accel_data_rate
return self._gyro_data_rate

@gyro_data_rate.setter
def gyro_data_rate(self, value):
if not Rate.is_valid(value):
raise AttributeError("gyro_data_rate must be a `Rate`")

self._gyro_accel_data_rate = value
self._gyro_data_rate = value
# sleep(.2) # needed to let new range settle

0 comments on commit b55bfe5

Please sign in to comment.