Skip to content

Commit db71708

Browse files
committed
%rh doesn't go negative, yo
1 parent a5e2eba commit db71708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_shtc3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def measurements(self):
199199
temperature = raw_temp / 100.0
200200

201201
# repeat above steps for humidity data
202-
raw_humidity = unpack_from(">h", humidity_data)[0]
202+
raw_humidity = unpack_from(">H", humidity_data)[0]
203203
raw_humidity = (625 * raw_humidity) >> 12
204204
humidity = raw_humidity / 100.0
205205

0 commit comments

Comments
 (0)