Skip to content

Conversation

JordanYates
Copy link
Contributor

Fix excessive time to sample in the environmental task which was causing the iteration function to sometimes skip iterations.

  • Use forced mode instead of normal mode
  • Optimize the PM operation of the sensor

Update zephyr fork to streamline `bme280` power mode handling in both
forced and normal modes.

Signed-off-by: Jordan Yates <[email protected]>
Use the BME280 forced mode by default so that we can trigger when we
want sampling to be done. This reduces the time it takes for the
environmental task to run when using PM.

Signed-off-by: Jordan Yates <[email protected]>
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.92%. Comparing base (3740f3a) to head (a818235).
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #238      +/-   ##
==========================================
+ Coverage   92.79%   92.92%   +0.12%     
==========================================
  Files         100      102       +2     
  Lines        3763     3774      +11     
  Branches      573      577       +4     
==========================================
+ Hits         3492     3507      +15     
+ Misses        141      136       -5     
- Partials      130      131       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JordanYates JordanYates merged commit 7f50d04 into main Sep 5, 2024
9 checks passed
@JordanYates JordanYates deleted the bugfix/bme280 branch September 5, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant