- set temp offset to -1°C

This commit is contained in:
jens
2020-12-14 16:02:17 +01:00
parent 6b727e3ea4
commit 73b567363b
+2 -2
View File
@@ -15,7 +15,7 @@ class TempSensor_max31865(ATemperatureSensor):
self.spi.open(0, 0)
self.spi.max_speed_hz = 50000
self.spi.mode = 0b01
self.temp_correction = -0.2
self.temp_correction = -1.0
self.write_reg(0x00, 0xA3)
time.sleep(0.100)
self.digits = 0
@@ -48,7 +48,7 @@ class TempSensor_max31865(ATemperatureSensor):
return None
R = TempSensor_max31865.calc_R(430, digits)
T = TempSensor_max31865.vanDusen_temp(R) + self.temp_correction
# print("R={:.3f} Ohm, T={:.2f} degC".format(R, T))
print("R={:.3f} Ohm, T={:.2f} degC".format(R, T))
return T
@staticmethod