Firmware v6.49 vs v5 Power Idle

Posted on
of 2
/ 2
  • This one seems particularly common, have we covered that alreadY? The code above covers it. And we are doing float arithmetic with getBattery .. hmm

    Espruino does not use HW floating point, javascript uses double type which is not what the FPU can do so this FPU fix was not there as it was not needed. If you still have older firmware you could check (and clear) FPU state and pending IRQ with­36cd62a82a857cf8b6a5c86f , see end of it, just paste

    var fpu = (function(){
      var bin=atob("CErS+AQxWwYK1fHuEDoj8J8D4e4QOv­HuEDpAI8L4hDFwRwC/AOEA4PHuEApwRwAAAkvT+A­QBwPOAEHBHAOEA4A==");
      return {
        getFPSCR:E.nativeCall(41, "int()", bin),
        getPendingFPUIRQ:E.nativeCall(49, "int()", bin),
        clearFPUIRQFlags:E.nativeCall(1, "void()", bin),

    and then call fpu.getPendingFPUIRQ() to get the pending IRQ flag.

    Anyway having the FPU fix there makes InlineC FPU hacks a bit easier.

  • @Gordon it seems that with the latest cutting edge firmware my Bangle.js is back in business. Thank you!

  • That's great news, thanks!

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

Firmware v6.49 vs v5 Power Idle

Posted by Avatar for d3nd3-o0 @d3nd3-o0