Fix an issue where the BME280 sometimes returns an incorrect chip ID immediately after a power cycle. This causes sensor initialization to fail. According to the datasheet, the sensor requires a 2 ms start-up delay after power is applied. This patch introduces a sleep delay to ensure the required start-up time is respected before reading the chip ID. Signed-off-by: Filip Stojanovic <filipembedded@gmail.com> |
||
|---|---|---|
| .. | ||
| bme280_async.c | ||
| bme280_decoder.c | ||
| bme280_i2c.c | ||
| bme280_spi.c | ||
| bme280.c | ||
| bme280.h | ||
| CMakeLists.txt | ||
| Kconfig | ||