From cf8d5a6606680eea2cab4d83d855292353c5ada5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Jan 2021 13:59:09 -0500 Subject: [PATCH] rpi_temperature: Disable rpi_temperature when using debug output Signed-off-by: Kevin O'Connor --- klippy/extras/rpi_temperature.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/klippy/extras/rpi_temperature.py b/klippy/extras/rpi_temperature.py index 2e07086c..d0ce6d45 100644 --- a/klippy/extras/rpi_temperature.py +++ b/klippy/extras/rpi_temperature.py @@ -18,6 +18,8 @@ class RPiTemperature: self.temp = self.min_temp = self.max_temp = 0.0 self.printer.add_object("rpi_temperature " + self.name, self) + if self.printer.get_start_args().get('debugoutput') is not None: + return self.sample_timer = self.reactor.register_timer( self._sample_pi_temperature) try: