Improved temp offset

This commit is contained in:
jens
2020-12-14 18:58:17 +00:00
parent 1ad33b488f
commit 7cac444424
+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 = -1.0
self.temp_correction = -1.2
self.write_reg(0x00, 0xA3)
time.sleep(0.100)
self.digits = 0
@@ -53,7 +53,7 @@ class TempSensor_max31865(ATemperatureSensor):
@staticmethod
def calc_R(Rref, digits):
k = digits / 8192 / 4
k = digits / 32768
R = k*Rref
return R