Bangle.js2: Barometer no values (except 0) [SOLVED]

Posted on
  • On my Bangle.js2 with firmware 2v11.45 when i run

    Bangle.setBarometerPower(true);
    Bangle.getPressure().then(print);
    Bangle.on('pressure', print);
    

    via the IDE everything i get back is just one single time:

    { "temperature": 0, "pressure": 0, "altitude": 0 }

    So no "pressure" events seem to be fired.
    Is my barometer broken or is this not working on other Bangle.js 2 devices as well?

  • I just saw this commit https://github.com/espruino/Espruino/com­mit/856e4250804dfd2aa2e56279de0355f08a78­42cd which fixed a regression with the barometer sensor. After i updated to 2v11.53 the barometer is working again.

  • Great - glad it's sorted! Yes, for a few commits I'd broken the old barometer - I've had to make some changes for the new bangles (which are hopefully arriving today! \o/) as they had to change the barometer IC due to chip shortages

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Bangle.js2: Barometer no values (except 0) [SOLVED]

Posted by Avatar for myxor @myxor

Actions