diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-09-05 18:19:36 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-05 18:22:21 -0400 |
commit | 36de6118c159638c5f1e77ad554d3488884ebb48 (patch) | |
tree | feb2d6379553316c6d6dc5115652126163cb0721 /klippy/klippy.py | |
parent | 7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e (diff) | |
download | kutter-36de6118c159638c5f1e77ad554d3488884ebb48.tar.gz kutter-36de6118c159638c5f1e77ad554d3488884ebb48.tar.xz kutter-36de6118c159638c5f1e77ad554d3488884ebb48.zip |
mcu: Limit ADC min/max range to a 16bit integer
Make sure the ADC range sent to the MCU can be encoded into a 16bit
integer. Otherwise, if the provided min_temp/max_temp was outside the
range of possible values it could result in a spurious mcu shutdown.
In particular, the AD595 could not properly encode a min_temp of zero.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
0 files changed, 0 insertions, 0 deletions