diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-04-09 12:35:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-04-09 12:35:18 -0400 |
commit | 75b89f5261f01eac6372d2adcedb878ce9f562f6 (patch) | |
tree | 5672d0952c6b06d7c44e5dc002bc9ca2f77c1d6b /klippy/extras/adc_temperature.py | |
parent | 8c8261ba8009b5c16815cb5166d50f7269d786cc (diff) | |
download | kutter-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