aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/spi_temperature.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-20 17:36:46 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-06-21 18:14:00 -0400
commit647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07 (patch)
tree791812af4deebc59fb777c2311dc3cd52ec6cfce /klippy/extras/spi_temperature.py
parentdaadb36cb4962c17afae0ad9c1a45083ee0883ff (diff)
downloadkutter-647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07.tar.gz
kutter-647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07.tar.xz
kutter-647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07.zip
serialhdl: Rename register_callback() to register_response()
Rename the method and use that name in the mcu class as well. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/spi_temperature.py')
-rw-r--r--klippy/extras/spi_temperature.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/spi_temperature.py b/klippy/extras/spi_temperature.py
index 65a080ff..74cf9505 100644
--- a/klippy/extras/spi_temperature.py
+++ b/klippy/extras/spi_temperature.py
@@ -28,7 +28,8 @@ class SensorBase:
self.mcu = mcu = self.spi.get_mcu()
# Reader chip configuration
self.oid = oid = mcu.create_oid()
- mcu.register_msg(self._handle_spi_response, "thermocouple_result", oid)
+ mcu.register_response(self._handle_spi_response,
+ "thermocouple_result", oid)
mcu.register_config_callback(self._build_config)
def setup_minmax(self, min_temp, max_temp):
adc_range = [self.calc_adc(min_temp), self.calc_adc(max_temp)]