Skip to content

Commit ba6b6fe

Browse files
authored
Update adafruit_tlv493d.py
Fixed units in docstring. Alternatively, multiple the returned values by 1000 in `_unpack_and_scale` to report microteslas (what all the other magnetic sensors from adafruit report)
1 parent ef85840 commit ba6b6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_tlv493d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _set_write_key(self, key: str, value: int) -> None:
158158
@property
159159
def magnetic(self) -> Tuple[float, float, float]:
160160
"""The processed magnetometer sensor values.
161-
A 3-tuple of X, Y, Z axis values in microteslas that are signed floats.
161+
A 3-tuple of X, Y, Z axis values in milliteslas that are signed floats.
162162
"""
163163
self._read_i2c() # update read registers
164164
x_top = self._get_read_key("BX1")

0 commit comments

Comments
 (0)