diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-09-02 09:37:13 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-09-02 10:04:35 -0400 |
commit | c69527e2b0d947cbfc2987b0bbfd3f530d458147 (patch) | |
tree | 1210e4e74624ef4677a81e443b6a34f2b1cc9d2a /klippy/extras/adc_temperature.py | |
parent | 37d7742468e71272dfd9acfa8bac79be8eca0460 (diff) | |
download | kutter-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.py | 2 |
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)] |