aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-05 18:19:36 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-05 18:22:21 -0400
commit36de6118c159638c5f1e77ad554d3488884ebb48 (patch)
treefeb2d6379553316c6d6dc5115652126163cb0721 /src
parent7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e (diff)
downloadkutter-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 'src')
0 files changed, 0 insertions, 0 deletions