The battery level is a bit jittery.
Which wouldn't be a problem, except that just below 30% GadgetBridge keeps sending "Gadget battery low!" notifications: the notification is dismissed when it jumps back to 30%, and then the next update below 30% triggers a fresh notification. (see attached graph)
I think ideally the firmware would force E.getBattery() to be monotonic, i.e. remember the last value, and only update to lower values while discharging, and only update to higher values while charging?
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.
The battery level is a bit jittery.
Which wouldn't be a problem, except that just below 30% GadgetBridge keeps sending "Gadget battery low!" notifications: the notification is dismissed when it jumps back to 30%, and then the next update below 30% triggers a fresh notification. (see attached graph)
I think ideally the firmware would force
E.getBattery()
to be monotonic, i.e. remember the last value, and only update to lower values while discharging, and only update to higher values while charging?1 Attachment