Skip to content

Conversation

JordanYates
Copy link
Contributor

Add support for an optional secondary device that is used if the primary device does not support a given channel. This supports the relatively common pattern of having two sensors for environmental data, one temperature + pressure, the other temperature + humidity.

Add and test extra capabilities in terms of power management and fetch
return codes.

Signed-off-by: Jordan Yates <[email protected]>
Import `hal_st` from upstream, which contains abstraction layers for ST
sensor devices.

Signed-off-by: Jordan Yates <[email protected]>
Update zephyr fork to move the ST LPS22HH pressure sensor to one-shot
mode and make `fetch` actually block until data is available.

Signed-off-by: Jordan Yates <[email protected]>
Only continue reading the data logger after a wrap if the first read
succeeded.

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

codecov bot commented Oct 11, 2025

Codecov Report

❌ Patch coverage is 86.04651% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
drivers/sensor/generic_sim.c 75.00% 6 Missing and 1 partial ⚠️
subsys/task_runner/tasks/task_environmental.c 92.98% 2 Missing and 2 partials ⚠️
subsys/data_logger/data_logger.c 0.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Add support for an optional secondary device that is used if the primary
device does not support a given channel. This supports the relatively
common pattern of having two sensors for environmental data, one
temperature + presure, the other temperature + humidity.

Signed-off-by: Jordan Yates <[email protected]>
Update tests to handle the dual source environmental task.

Signed-off-by: Jordan Yates <[email protected]>
Add support for testing a second environmental sensor.

Signed-off-by: Jordan Yates <[email protected]>
Add aliases for secondary environmental sensors.

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

@JordanYates JordanYates merged commit 2fdbd51 into main Oct 11, 2025
20 of 21 checks passed
@JordanYates JordanYates deleted the feature/dual_env branch October 11, 2025 10:04
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