Skip to content

Commit f7dd2cb

Browse files
committed
added sleep after reset
1 parent 09db75f commit f7dd2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_lsm303agr_mag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959

6060
# pylint: disable=bad-whitespace
6161
_ADDRESS_MAG = const(0x1E) # (0x3C >> 1) // 0011110x
62-
_ID = const(0xD4) # (0b11010100)
6362

6463

6564
MAG_DEVICE_ID = 0b01000000
@@ -153,6 +152,7 @@ def __init__(self, i2c):
153152
def reset(self):
154153
"""Reset the sensor to the default state set by the library"""
155154
self._soft_reset = True
155+
sleep(0.100)
156156
self._reboot = True
157157
sleep(0.100)
158158
self._mode = 0x00

0 commit comments

Comments
 (0)