We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e0fea8 + eb89a5d commit 9ecdce6Copy full SHA for 9ecdce6
adafruit_shtc3.py
@@ -195,7 +195,7 @@ def measurements(self):
195
# decode data into human values:
196
# convert bytes into 16-bit signed integer
197
# convert the LSB value to a human value according to the datasheet
198
- raw_temp = unpack_from(">h", temp_data)[0]
+ raw_temp = unpack_from(">H", temp_data)[0]
199
raw_temp = ((4375 * raw_temp) >> 14) - 4500
200
temperature = raw_temp / 100.0
201
0 commit comments