Skip to content

Commit

Permalink
%rh doesn't go negative, yo
Browse files Browse the repository at this point in the history
  • Loading branch information
siddacious committed Jul 7, 2020
1 parent a5e2eba commit db71708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_shtc3.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def measurements(self):
temperature = raw_temp / 100.0

# repeat above steps for humidity data
raw_humidity = unpack_from(">h", humidity_data)[0]
raw_humidity = unpack_from(">H", humidity_data)[0]
raw_humidity = (625 * raw_humidity) >> 12
humidity = raw_humidity / 100.0

Expand Down

0 comments on commit db71708

Please # to comment.