Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions adafruit_max31865.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ def temperature(self):
temp = (math.sqrt(temp) + Z1) / Z4
if temp >= 0:
return temp

# For the following math to work, nominal RTD resistance must be normalized to 100 ohms
raw_reading /= self.rtd_nominal
raw_reading *= 100

rpoly = raw_reading
temp = -242.02
temp += 2.2228 * rpoly
Expand Down