From c69527e2b0d947cbfc2987b0bbfd3f530d458147 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 2 Sep 2020 09:37:13 -0400 Subject: spi_temperature: Simplify and comment MAX31865 temperature calculations Signed-off-by: Kevin O'Connor --- klippy/extras/adc_temperature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/adc_temperature.py') 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)] -- cgit v1.2.3-70-g09d2