From 0539e9f2666839d9adeecdfcf492a45a0d3aac1a Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 31 May 2023 06:17:29 -0400 Subject: [PATCH] bme280: use consistent report time for BME680 Sample the BME680 every .8 seconds, matching that of the BME280. This resolves an issue where `get_report_time_delta()` returns a value that doesn't match the actual delta. Signed-off-by: Eric Callahan --- klippy/extras/bme280.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/bme280.py b/klippy/extras/bme280.py index 0cd9f392..e27bfb47 100644 --- a/klippy/extras/bme280.py +++ b/klippy/extras/bme280.py @@ -332,7 +332,7 @@ class BME280: % (self.temp, self.min_temp, self.max_temp)) measured_time = self.reactor.monotonic() self._callback(self.mcu.estimated_print_time(measured_time), self.temp) - return measured_time + REPORT_TIME * 4 + return measured_time + REPORT_TIME def _compensate_temp(self, raw_temp): dig = self.dig