aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/adc_temperature.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-04-09 12:35:18 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-04-09 12:35:18 -0400
commit75b89f5261f01eac6372d2adcedb878ce9f562f6 (patch)
tree5672d0952c6b06d7c44e5dc002bc9ca2f77c1d6b /klippy/extras/adc_temperature.py
parent8c8261ba8009b5c16815cb5166d50f7269d786cc (diff)
downloadkutter-75b89f5261f01eac6372d2adcedb878ce9f562f6.tar.gz
kutter-75b89f5261f01eac6372d2adcedb878ce9f562f6.tar.xz
kutter-75b89f5261f01eac6372d2adcedb878ce9f562f6.zip
thermistor: Fallback to using beta if Steinhart-Hart c3 is negative
If the c3 coefficient is negative it can cause the adc calculations to fail. The c3 shouldn't be negative in practice, so fallback to a simple beta calculation in that case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/adc_temperature.py')
0 files changed, 0 insertions, 0 deletions