Skip to content

Commit 86050c3

Browse files
projectgusdpgeorge
authored andcommitted
bmm150: Remove broken reset function.
Looks like copy-pasta from bmi270 driver. There is a soft reset capability documented in the BMM150 datasheet, but it uses different register bits and I don't have a BMM150 at hand to test it. Found by Ruff checking F821. Signed-off-by: Angus Gratton <[email protected]>
1 parent 674e734 commit 86050c3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

micropython/drivers/imu/bmm150/bmm150.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ def _compensate_z(self, raw, hall):
165165
z = (z5 / (z4 * 4)) / 16
166166
return z
167167

168-
def reset(self):
169-
self._write_reg(_CMD, 0xB6)
170-
171168
def magnet_raw(self):
172169
for i in range(0, 10):
173170
self._read_reg_into(_DATA, self.scratch)

0 commit comments

Comments
 (0)