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>
This commit is contained in:
Eric Callahan 2023-05-31 06:17:29 -04:00 committed by KevinOConnor
parent ddf0994ba2
commit 0539e9f266
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ class BME280:
% (self.temp, self.min_temp, self.max_temp)) % (self.temp, self.min_temp, self.max_temp))
measured_time = self.reactor.monotonic() measured_time = self.reactor.monotonic()
self._callback(self.mcu.estimated_print_time(measured_time), self.temp) 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): def _compensate_temp(self, raw_temp):
dig = self.dig dig = self.dig