aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/adc_temperature.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-02 09:37:13 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-02 10:04:35 -0400
commitc69527e2b0d947cbfc2987b0bbfd3f530d458147 (patch)
tree1210e4e74624ef4677a81e443b6a34f2b1cc9d2a /klippy/extras/adc_temperature.py
parent37d7742468e71272dfd9acfa8bac79be8eca0460 (diff)
downloadkutter-c69527e2b0d947cbfc2987b0bbfd3f530d458147.tar.gz
kutter-c69527e2b0d947cbfc2987b0bbfd3f530d458147.tar.xz
kutter-c69527e2b0d947cbfc2987b0bbfd3f530d458147.zip
spi_temperature: Simplify and comment MAX31865 temperature calculations
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/adc_temperature.py')
-rw-r--r--klippy/extras/adc_temperature.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/adc_temperature.py b/klippy/extras/adc_temperature.py
index 40c270ef..d456a653 100644
--- a/klippy/extras/adc_temperature.py
+++ b/klippy/extras/adc_temperature.py
@@ -262,7 +262,7 @@ AD8497 = [
]
def calc_pt100(base=100.):
- # Calc PT100/PT1000 temperature/resistance pairs using formula
+ # Calc PT100/PT1000 resistances using Callendar-Van Dusen formula
A, B = (3.9083e-3, -5.775e-7)
return [(float(t), base * (1. + A*t + B*t*t)) for t in range(0, 500, 10)]