diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-11-23 09:52:20 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-11-23 09:58:42 -0500 |
commit | 665ec5e9877ec56c93fb519f069a6c932dbe91a9 (patch) | |
tree | 7333a52a359d29c010dc489fbd989c3073388b55 | |
parent | c6f870a65513ae719adc260e3e7e09e958abdcd0 (diff) | |
download | kutter-665ec5e9877ec56c93fb519f069a6c932dbe91a9.tar.gz kutter-665ec5e9877ec56c93fb519f069a6c932dbe91a9.tar.xz kutter-665ec5e9877ec56c93fb519f069a6c932dbe91a9.zip |
spi_temperature: Fix incorrect max31856 spi initialization
Writes to the max31856 chip use "burst mode", so only one address
during the initialization sequence can be sent. This fixes erroneous
"Cold Junction Fault" errors.
Reported by @NBouquain.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/spi_temperature.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/extras/spi_temperature.py b/klippy/extras/spi_temperature.py index defc0037..b6f33a9a 100644 --- a/klippy/extras/spi_temperature.py +++ b/klippy/extras/spi_temperature.py @@ -174,12 +174,10 @@ class MAX31856(SensorBase): "16" : MAX31856_CR1_AVGSEL16 } value |= config.getchoice('tc_averaging_count', averages, "1") - cmds.append(0x80 + MAX31856_CR1_REG) cmds.append(value) value = (MAX31856_MASK_VOLTAGE_UNDER_OVER_FAULT | MAX31856_MASK_THERMOCOUPLE_OPEN_FAULT) - cmds.append(0x80 + MAX31856_MASK_REG) cmds.append(value) return cmds |