aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-24 19:50:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-24 19:50:11 -0400
commit7d0f3649f354a95cd833879cb7c26d80885ed36e (patch)
tree81932ac79cc9d736b6725c4c1638048d5205ba1a /klippy
parent63dffd9307f4a1e69a40df69ad1f7c6bc7e6929f (diff)
downloadkutter-7d0f3649f354a95cd833879cb7c26d80885ed36e.tar.gz
kutter-7d0f3649f354a95cd833879cb7c26d80885ed36e.tar.xz
kutter-7d0f3649f354a95cd833879cb7c26d80885ed36e.zip
spi_temperature: The query_thermocouple command is an init command
Make sure to use is_init=True when sending query_thermocouple - otherwise, the config CRC is likely to mismatch on every connection. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/spi_temperature.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/spi_temperature.py b/klippy/extras/spi_temperature.py
index 269bba0a..10ea1a8f 100644
--- a/klippy/extras/spi_temperature.py
+++ b/klippy/extras/spi_temperature.py
@@ -63,7 +63,7 @@ class SensorBase:
"query_thermocouple oid=%u clock=%u rest_ticks=%u"
" min_value=%u max_value=%u" % (
self.oid, clock, self._report_clock,
- self.min_sample_value, self.max_sample_value))
+ self.min_sample_value, self.max_sample_value), is_init=True)
def _handle_spi_response(self, params):
temp = self.calc_temp(params['value'], params['fault'])
next_clock = self.mcu.clock32_to_clock64(params['next_clock'])