update it only if it changed by 5% or more?
That's probably better, otherwise it could get stuck on a low value after any glitch.
@rigrig started
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.
That's probably better, otherwise it could get stuck on a low value after any glitch.