Skip to content

Commit

Permalink
discard samples if SP state changes mid-poll
Browse files Browse the repository at this point in the history
Thanks to @jgallagher for pointing out that a SP's firmware may be
updated while we are in the middle of scraping its sensors (see [this
comment][1]). Now, we'll re-check that the SP's state hasn't changed
since the start of the poll, and throw away the current batch of samples
and retry if it has. This avoids reporting samples to Oximeter that may
have incorrect fields.

[1]: #6354 (comment)
  • Loading branch information
hawkw committed Aug 21, 2024
1 parent bd86ce7 commit 6f58866
Showing 1 changed file with 355 additions and 258 deletions.
Loading

0 comments on commit 6f58866

Please sign in to comment.