in https://github.com/BoschSensortec/BME280_driver/blob/master/examples/linux_userspace.c user_i2c_read function didn't check the return of read function. If bme280 disconnected unexpected, user_i2c_read will not report any error, then subsequent code may give wrong data.
... View more