diff options
author | Eric Callahan <arksine.code@gmail.com> | 2023-05-31 06:17:29 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2023-05-31 13:43:07 -0400 |
commit | 0539e9f2666839d9adeecdfcf492a45a0d3aac1a (patch) | |
tree | ef16656ab0db0cba0da120639fa2f65d479ca665 /klippy/extras/bme280.py | |
parent | ddf0994ba21b94497800576d623ea4b2ca27cc5a (diff) | |
download | kutter-0539e9f2666839d9adeecdfcf492a45a0d3aac1a.tar.gz kutter-0539e9f2666839d9adeecdfcf492a45a0d3aac1a.tar.xz kutter-0539e9f2666839d9adeecdfcf492a45a0d3aac1a.zip |
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 <arksine.code@gmail.com>
Diffstat (limited to 'klippy/extras/bme280.py')
-rw-r--r-- | klippy/extras/bme280.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |