-
But have you tried using Bangle.on('pressure' and Bangle.setBarometerPower(1)? If you're doing a reading every 10 seconds it's probably better and far more reliable just to keep the barometer on all the time rather than repeatedly powering it on and off
yes, that works better, but in my clock adjust widget the update interval can be much longer than 10 seconds and
Bangle.on('pressure'
causes several updates each second so it likely uses a lot more power.
Ok, thanks - that's what I thought then. I guess there is an I2C error not when initialising, but when reading the data from the sensor after a timeout. I could add a check in there for that, and I guess it may help to catch those occasional odd temperature values.
But have you tried using
Bangle.on('pressure'
andBangle.setBarometerPower(1)
? If you're doing a reading every 10 seconds it's probably better and far more reliable just to keep the barometer on all the time rather than repeatedly powering it on and off