temperature_mcu: Disable the temperature_mcu when using debug output

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-01-24 13:56:57 -05:00
parent dd7b98cce4
commit db86a4edcb
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class PrinterTemperatureMCU:
query_adc = config.get_printer().load_object(config, 'query_adc')
query_adc.register_adc(config.get_name(), self.mcu_adc)
# Register callbacks
if self.printer.get_start_args().get('debugoutput') is not None:
return
self.printer.register_event_handler("klippy:mcu_identify",
self._mcu_identify)
def setup_callback(self, temperature_callback):