bulk_sensor: Don't assume chip_clock is zero on start of queries

Send an explicit clock query in ChipClockUpdater to seed the initial
clock.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2023-12-27 12:58:53 -05:00
parent 266e96621c
commit 2dc4cfc5df
4 changed files with 13 additions and 9 deletions

View file

@ -162,7 +162,7 @@ class LIS2DW:
reqclock=reqclock)
logging.info("LIS2DW starting '%s' measurements", self.name)
# Initialize clock tracking
self.clock_updater.note_start(reqclock)
self.clock_updater.note_start()
self.last_error_count = 0
def _finish_measurements(self):
# Halt bulk reading