Skip to content

Commit 516f2dc

Browse files
committed
Removed sleep functions from sensor reading functions.
1 parent 8a2b269 commit 516f2dc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adafruit_icm20x.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ def acceleration(self):
267267
"""The x, y, z acceleration values returned in a 3-tuple and are in :math:`m / s ^ 2.`"""
268268
self._bank = 0
269269
raw_accel_data = self._raw_accel_data
270-
sleep(0.005)
271270

272271
x = self._scale_xl_data(raw_accel_data[0])
273272
y = self._scale_xl_data(raw_accel_data[1])
@@ -288,7 +287,6 @@ def gyro(self):
288287
return (x, y, z)
289288

290289
def _scale_xl_data(self, raw_measurement):
291-
sleep(0.005)
292290
return raw_measurement / AccelRange.lsb[self._cached_accel_range] * G_TO_ACCEL
293291

294292
def _scale_gyro_data(self, raw_measurement):
@@ -748,7 +746,6 @@ def magnetic(self):
748746

749747
self._bank = 0
750748
full_data = self._raw_mag_data
751-
sleep(0.005)
752749

753750
x = full_data[0] * _ICM20X_UT_PER_LSB
754751
y = full_data[1] * _ICM20X_UT_PER_LSB

0 commit comments

Comments
 (0)