Skip to content

Commit 47916c5

Browse files
committed
fixing sign bug for temp
1 parent a483319 commit 47916c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_lps35hw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class LPS35HW: # pylint: disable=too-many-instance-attributes
127127
"""True if the low pass filter is enabled. Setting to `True` will reduce the sensor bandwidth
128128
from ``data_rate/2`` to ``data_rate/9``, filtering out high-frequency noise."""
129129

130-
_raw_temperature = ROBits(16, _TEMP_OUT_L, 0, 2)
130+
_raw_temperature = UnaryStruct(_TEMP_OUT_L, "<h")
131131
_raw_pressure = ROBits(24, _PRESS_OUT_XL, 0, 3)
132132
_reference_pressure = RWBits(24, _REF_P_XL, 0, 3)
133133
_pressure_offset = RWBits(16, _RPDS_L, 0, 2)

0 commit comments

Comments
 (0)