zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.92k stars 6.65k forks source link

sensor: bme280: `bme280_wait_until_ready` timeout #81745

Open JordanYates opened 8 hours ago

JordanYates commented 8 hours ago

Add a timeout to the bme280_wait_until_ready loop to ensure that we never get stuck in this loop even if the bus enters an error condition.

This can apparently happen to real hardware, as shown by this memfault dump that triggered a watchdog reboot: image