Workaround bme680 problem

The sensors becomes unresponsive after some time (can be quick, can be very
long) until a reset is done. Using a soft reset seems to be working, but most
likely there's something incorrect elsewhere.
dev/doc
Marc Poulhiès 2 years ago
parent 6d61abc637
commit 361ef6e240

@ -50,7 +50,7 @@ embedded-graphics = "0.6"
cortex-m-rtic = "0.5"
bme680 = { version = "0.5", optional = true }
drogue-bme680 = { version = "0.3", optional = true }
drogue-bme680 = { optional = true, git = "https://github.com/dkm/drogue-bme680.git", branch = "main" }
embedded-time = { version = "0.10", optional = true }
[dependencies.heapless]

@ -1053,6 +1053,7 @@ const APP: () = {
_gas = 0i32;
*cx.resources.i2c_error += 1;
debug_only! {hprintln!("I2C error drogue_bme680 for bme").unwrap()}
cx.resources.bme680.soft_reinit().unwrap();
}
let cur_i2c_error = *cx.resources.i2c_error;

Loading…
Cancel
Save