bme280: Disable bme280 when using debug output
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c3e3b2280a
commit
04179f3eae
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue