diff --git a/klippy/extras/bme280.py b/klippy/extras/bme280.py index 491f892f..bf6c7b91 100644 --- a/klippy/extras/bme280.py +++ b/klippy/extras/bme280.py @@ -38,6 +38,8 @@ class BME280: self.dig = None self.sample_timer = self.reactor.register_timer(self._sample_bme280) self.printer.add_object("bme280 " + self.name, self) + if self.printer.get_start_args().get('debugoutput') is not None: + return self.printer.register_event_handler("klippy:connect", self.handle_connect)