aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/temperature_mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-01-24 15:28:16 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-01-24 15:28:16 -0500
commitbded15b7437e5807831128ae2a043b3194cc571e (patch)
treec1350ce7b4353c418bde1e60c7ccadf48003244d /klippy/extras/temperature_mcu.py
parent04179f3eae18bb89aee7b999c810a6d6d1c2614c (diff)
downloadkutter-bded15b7437e5807831128ae2a043b3194cc571e.tar.gz
kutter-bded15b7437e5807831128ae2a043b3194cc571e.tar.xz
kutter-bded15b7437e5807831128ae2a043b3194cc571e.zip
temperature_mcu: Improve handling when in debug output mode
Call mcu_adc.setup_minmax() even in debug output mode so that the debugging output contains a more accurate configuration. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/temperature_mcu.py')
-rw-r--r--klippy/extras/temperature_mcu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/temperature_mcu.py b/klippy/extras/temperature_mcu.py
index 7a3865dc..1a1510da 100644
--- a/klippy/extras/temperature_mcu.py
+++ b/klippy/extras/temperature_mcu.py
@@ -35,6 +35,8 @@ class PrinterTemperatureMCU:
query_adc.register_adc(config.get_name(), self.mcu_adc)
# Register callbacks
if self.printer.get_start_args().get('debugoutput') is not None:
+ self.mcu_adc.setup_minmax(SAMPLE_TIME, SAMPLE_COUNT,
+ range_check_count=RANGE_CHECK_COUNT)
return
self.printer.register_event_handler("klippy:mcu_identify",
self._mcu_identify)