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>
This commit is contained in:
parent
63dffd9307
commit
7d0f3649f3
|
@ -63,7 +63,7 @@ class SensorBase:
|
||||||
"query_thermocouple oid=%u clock=%u rest_ticks=%u"
|
"query_thermocouple oid=%u clock=%u rest_ticks=%u"
|
||||||
" min_value=%u max_value=%u" % (
|
" min_value=%u max_value=%u" % (
|
||||||
self.oid, clock, self._report_clock,
|
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):
|
def _handle_spi_response(self, params):
|
||||||
temp = self.calc_temp(params['value'], params['fault'])
|
temp = self.calc_temp(params['value'], params['fault'])
|
||||||
next_clock = self.mcu.clock32_to_clock64(params['next_clock'])
|
next_clock = self.mcu.clock32_to_clock64(params['next_clock'])
|
||||||
|
|
Loading…
Reference in New Issue