And yes, I'd just try..catch it. From the look of it, even if that code creates an exception, things may still work fine - is that the case?
How often does it happen? I know there have been intermittent I2C errors on some devices, but generally that was when getting the values, and I think we handle that ok now. I haven't generally seen it when powering the barometer on, but I guess most apps just power it on and leave it on.
Looking at it, I could add a retry or two in the Espruino firmware itself, which might help to fix this though.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Are you on the latest Bangle.js firmware? (2v14)
And yes, I'd just try..catch it. From the look of it, even if that code creates an exception, things may still work fine - is that the case?
How often does it happen? I know there have been intermittent I2C errors on some devices, but generally that was when getting the values, and I think we handle that ok now. I haven't generally seen it when powering the barometer on, but I guess most apps just power it on and leave it on.
Looking at it, I could add a retry or two in the Espruino firmware itself, which might help to fix this though.