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 <angus@redyak.com.au>
pull/714/head
Angus Gratton 2023-08-09 18:51:11 +10:00 zatwierdzone przez Damien George
rodzic 674e734a1c
commit 86050c3d7a
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -165,9 +165,6 @@ class BMM150:
z = (z5 / (z4 * 4)) / 16
return z
def reset(self):
self._write_reg(_CMD, 0xB6)
def magnet_raw(self):
for i in range(0, 10):
self._read_reg_into(_DATA, self.scratch)