return? Is it an object with zeros, or do you get an error instead?
Are you running an app that keeps the barometer on kind-of permanently? Or do you know if it turns it on and off repeatedly?
Looking at the code we only issue a software reset to the barometer on boot, but we could do it each time the barometer is powered on (although that may not help too much if you have something that keeps it powered all the time)
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.
Wow, this does seem very odd - I'm glad you got a solution though (sending a RESET command).
So when it happens, what does:
return? Is it an object with zeros, or do you get an error instead?
Are you running an app that keeps the barometer on kind-of permanently? Or do you know if it turns it on and off repeatedly?
Looking at the code we only issue a software reset to the barometer on boot, but we could do it each time the barometer is powered on (although that may not help too much if you have something that keeps it powered all the time)